applyDateFilters: Date filter meter data

Description Usage Arguments

View source: R/filter.R

Description

Utility function that filters raw meter data (one customer day per row) based on date criteria

Usage

1
applyDateFilters(df, filterRules = NULL, dateCol = "dates")

Arguments

df

The data frame of data to filter

filterRules

A named list of filtering rules. Supported list entries include:

MOY - list of months of the year to include, using 1 for Jan through 12 for Dec

DOW - days of week to include, using 1 for Sun and 7 for Sat

start.date - the first day of data to include: all dates before this date are excluded

end.date - the last day of data to include: all dates after this date are excluded

dateCol

The name of the column in 'df' with dates in it.


ConvergenceDA/visdom documentation built on May 6, 2019, 12:51 p.m.