Description Usage Arguments Value Author(s) Examples
Estimate the time scale used in time series data.
1 | EstimateTimeScale(dates)
|
dates |
A sorted vector of class |
A character string. Either "daily", "weekly", "yearly",
"monthly", "quarterly", or "other". The value is determined based on
counting the number of days between successive observations in dates
.
Steven L. Scott steve.the.bayesian@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | weekly.data <- as.Date(c("2011-10-01",
"2011-10-08",
"2011-10-15",
"2011-10-22",
"2011-10-29",
"2011-11-05"))
EstimateTimeScale(weekly.data) # "weekly"
almost.weekly.data <- as.Date(c("2011-10-01",
"2011-10-08",
"2011-10-15",
"2011-10-22",
"2011-10-29",
"2011-11-06")) # last day is one later
EstimateTimeScale(weekly.data) # "other"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.