Last chance! 50% off unlimited learning
Sale ends in
applyDiff(x = NULL, group = NULL, time = NULL, data, k = 0)
NULL
, all quantitative variables will be differenced.NULL
, no groups are considered.NULL
and group
is not NULL
, data are assumed temporally ordered within each group.
If both group
and time
are NULL
, data are assumed temporally ordered.data.frame
containing the variables to be differenced,
the group factor if group
is not NULL
, and the time factor if time
is not NULL
.data.frame
provided to argument data
, where the requested variables have been differenced.data(industry)
applyDiff(c("Job","Population"),group="Region",data=industry,k=1)
Run the code above in your browser using DataLab