Displaying 1 result from an estimated 1 matches for "tp3221225p3221225".
2011 Jan 17
1
Log difference in a dataframe column
...25 30.65 30.24 30.39
#equation in question ...why is this giving zeros ?
y1 <- 100*log(y[,5]/(lag(y[,5],1)))
# first 10 values from the equation...all zeros
head(y1,10)
[1] 0 0 0 0 0 0 0 0 0 0
--
View this message in context: http://r.789695.n4.nabble.com/Log-difference-in-a-dataframe-column-tp3221225p3221225.html
Sent from the R help mailing list archive at Nabble.com.