diff.log
Calculate the difference of log data
Description
Calculate the difference from lag periods prior for log of data.
Usage
diff.log(series, lag=1, base = 2.71828182845905)
Required Arguments
Optional Arguments
- lag
-
The difference is calculated relative to lag periods prior.
Value
A time series of the difference relative to lag periods prior for the log of
the data. lag data points are lost from the beginning of the series. Negative
values will result in NAs.
Examples
return to Table of Contents