zoo.regular | R Documentation |
Given vector of datetimes and values, constructs regular time series with filling
zoo.regular(dates, values, by = "hour", fill = NA)
dates |
vector of POSIXct values |
values |
vector of numeric values |
by |
target frequency (e.g. "hour", "day", etc), see seq.POSIXt |
fill |
value to fill missing elements |
boolean
zoo.regular(df$Datetime, df$Value, by="hour", fill=NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.