Displaying 1 result from an estimated 1 matches for "depth_1".
Did you mean:
depth1
2012 Jan 18
3
manipulating data of several columns simultaneously
...alues. But I should reorganize the values
(because I created this as an output before and I want to compare it with an
other dataset). I want that the value on row 2 becomes the value of row 1,
value 3 value 2 and so on. The first value would be NA.
If I would do this for 1 column (with the name depth_1), I would do it like
this:
for (t in 2:60)
{
results$depth[t]<-new$depth_1[t-1]
}
# But in my dataset I have 91 columns and I would like to find a way not
having to write this for every column?
# I cannot give my dataset where I?m working on so I created one just for
trying it out and to prov...