zoo.regular: Constructs regular zoo object

View source: R/timeseries.R

zoo.regularR Documentation

Constructs regular zoo object

Description

Given vector of datetimes and values, constructs regular time series with filling

Usage

zoo.regular(dates, values, by = "hour", fill = NA)

Arguments

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

Value

boolean

Examples

zoo.regular(df$Datetime, df$Value, by="hour", fill=NA)

walkerjeffd/myrwaR documentation built on Nov. 14, 2024, 1:25 p.m.