Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/CheckHurlbert.R
checks input data for OLE.hurlbert()
1 | CheckHurlbert(data, Interpolate = TRUE)
|
data |
data-frame; It must have two columns, one wih date-objects one with numeric values. |
interpolate |
logical; determines whether data should be interpolated or not. |
This function checks if given data fits the requirenments for the OLE.hurlbert() function. Will interpolate the data if required.
data.frame. based on input data.frame, may include new datapoints.
Florian Berger <florian_berger@ymail.com>
1 2 3 4 5 | a <- c(1:10)
dates <- as.Date(a, origin = '2017-01-01')
count <- c(1,1,3,4,6,9,5,4,2,1)
dat <- data.frame(dates, count)
newdat <- CheckHurlbert(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.