Trim a data.frame to 'fit' within specified 'start' and 'end' Date-time values.

trim_bytime_at(data = NULL, timebin = NULL, start, end, facet)

trim_bytime(..., timebin, facet)

Arguments

data

data.frame.

timebin

bare for NSE; character for SE. Name of columin in data to use for time filtering.

start, end

Date-time. If either is missing, then codecompute_timefilter_at() is called.

facet

bare for NSE; character for SE. Name of column in data used for facetting.

...

dots. Additional parameters to pass to compute_timefilter_at() in the case that start and end are not specified.

Value

data.frame.

Details

Should be used to a trim data.frame appropriately/dynamically given an unknown data set where visualization across a single, appropriate time period is desired. (The unkown data set may have different 'max' and 'min' times for each facet column.