8
I want to create a column from another in the R, where part of the lines have no value. The column should be constructed as follows: if the row of the base column has value, it will look for the same value, otherwise it should look for information from the previous row of this new column. Could someone help me?
you tried something?
– djas
Cristiane, put an example illustrating the expected result, this helps to eliminate the ambiguity of the question. See here an example of how to improve the question. http://meta.pt.stackoverflow.com/questions/824/como-crea-um-exemplo-m%C3%Adnimo-reproduces%C3%Advel-em-r/825#825
– Carlos Cinelli
Hi, Cristiane, if Rodrigo’s answer answered your question, you can accept it by clinging to the ok symbol on the left side of the answer!
– Carlos Cinelli