Displaying 1 result from an estimated 1 matches for "d2weight".
Did you mean:
c_weight
2011 Jun 24
0
lag and diff with transformBy
...ox.difference <- transformBy(~Evit+Cu+Litter, data=dietox.ordered,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?lWeight=c(NA,lag(Weight,1)),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?l4Weight=c(NA,NA,NA,NA,lag(Weight,4)),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dWeight=c(NA,diff(Weight,1)),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?d2Weight=c(NA,NA,diff(Weight,2)),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dFeed=c(NA,diff(Feed,1))
? ? ? ? ? ? ? ? ? ?)
head(dietox.difference,24)
Information on package 'doBy'
Package: doBy
Version: 4.3.0
Packaged: 2011-03-28 08:03:18 UTC; SHD
Repository...