startDateFilter: Filter the date column using a minimum date

Description Usage Arguments Value Examples

Description

Easily filter dates in a Heavyset csv exported dataframe, using a minimum date. The function will filter 'start_date' as equal to or greater than. The HeavySet exported dataframe should still have the date column named 'Date'.

Usage

1
startDateFilter(df, start_date)

Arguments

df

dataframe created from a HeavySet csv export

start_date

a data in the form of 'yyyy-mm-dd'

Value

data.frame

Examples

1
2
3
4
df <- simData(repeats = 5)
head(df, 1)
weekbefore <- Sys.Date() - 7
head(startDateFilter(df, weekbefore), 1)

MarijnJABoer/HeavySetR documentation built on May 22, 2019, 5:31 p.m.