# simulated accrued data
data(accruedDataExample)
# Convert to data.accrued object
dat <- data.accrued(accruedDataExample)
dat$start[[1]]
# This is FALSE because no start date was specified.
dat$start[[2]]
# This is 1 because no start date was specified.
dat # uses print.accrued
summary(dat) # uses summary.accrued
plot(summary(dat)) # produces a plot of the summary object
plot(dat) # plots time series of differences between lags
# Convert to data.accrued object, start date now specified.
dat <- data.accrued(accruedDataExample, start="2012-09-15")
dat$start[[1]] # this is TRUE because a start date was specified
dat$start[[2]] # this is the start dateRun the code above in your browser using DataLab