meter_df: Create 'meter_df' object

Description Usage Arguments Examples

Description

Create meter_df, which is essentially a data.frame with standardized meter data series

Usage

1
meter_df(..., stringsAsFactors = default.stringsAsFactors())

Arguments

...

column elements to be binded into an meter_df object or a data.frame with required columns. One element must be a time index and at least one should have measured values with units set, see set_units

stringsAsFactors

logical; logical: should character vectors be converted to factors? The ‘factory-fresh’ default is TRUE, but this can be changed by setting options(stringsAsFactors = FALSE).

Examples

1
2
3
4
5
6
library("units")

x <- data.frame(time = seq.Date(as.Date("2013-1-1"), by = "+1 month", length.out = 12),
                value = set_units(rnorm(12), kW))

meter_df(x)

ucd-cwee/energyintensity documentation built on May 3, 2019, 2:19 p.m.