Displaying 1 result from an estimated 1 matches for "5639l".
Did you mean:
5639
2011 Jan 26
1
Using diff and transform
...estions ?
j
Date Close
1 11/20/1985 156.412
2 11/21/1985 155.112
3 11/22/1985 154.182
4 11/25/1985 154.192
5 11/26/1985 153.722
6 11/27/1985 153.712
d <-diff(j[,2])
d
[1] -1.30 -0.93 0.01 -0.47 -0.01
j <- transform(j, delta=diff(j[,2]))
Error in data.frame(list(Date = c(5620L, 5639L, 5657L, 5706L, 5721L, 5736L :
arguments imply differing number of rows: 6, 5
Calls: transform -> transform.data.frame -> do.call -> data.frame
--
View this message in context: http://r.789695.n4.nabble.com/Using-diff-and-transform-tp3237397p3237397.html
Sent from the R help mailing li...