search for: fine1

Displaying 1 result from an estimated 1 matches for "fine1".

Did you mean: fine
2010 Dec 09
1
how to use diff() with different variables?
...'data.frame': 3 obs. of 2 variables: $ x : Factor w/ 3 levels "A","B","C": 1 2 3 $ fine: POSIXct, format: "2010-12-09 07:57:33" "2010-12-09 08:05:00" "2010-12-08 20:42:00" What I am trying to do is to build another variable fine1 that should contain the lagged value for "fine", that is: x fine fine1 1 A 2010-12-09 07:57:33 NA 2 B 2010-12-09 08:05:00 2010-12-09 07:57:33 3 C 2010-12-08 20:42:00 2010-12-09 08:05:00 How can I do that? Thanks, Luca Luca Meyer www.lucameyer.com IBM SP...