View source: R/function_EquallySpacedObs.R
| EquallySpacedObs | R Documentation |
EquallySpacedObs creates equally spaced time series with missing observations from a data frame with irregular
observations.
EquallySpacedObs(x, sort.data = TRUE, timestep, ts.col = 1)
x |
A |
sort.data |
Logical, if |
timestep |
Character string keyword, giving the target time step length. Either |
ts.col |
Integer, column index of datetime column. |
EquallySpacedObs will preserve additional attributes present in x. If datetime column is of class
Date, there may occur problems with daylight saving time shifts. To avoid problems, use class
POSIXct and set time zone to "UTC".
EquallySpacedObs returns a dataframe.
te <- data.frame(date = as.POSIXct(c("2000-01-01", "2000-02-01"), tz = "gmt"), obs = c(1, 2))
EquallySpacedObs(x = te, timestep = "day")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.