search for: l4weight

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

Did you mean: c_weight
2011 Jun 24
0
lag and diff with transformBy
...st regards, Michael options(width=140) library(doBy) data(dietox) dietox.ordered <- orderBy(~Evit+Cu+Litter+Time, data=dietox) dietox.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 o...