monitor_select: Subset and reorder time series within an _mts_monitor_ object

View source: R/monitor_select.R

monitor_selectR Documentation

Subset and reorder time series within an mts_monitor object

Description

This function acts similarly to dplyr::select() working on monitor$data. The returned mts_monitor object will contain only those time series identified by id in the order specified.

This can be helpful when using faceted plot functions based on ggplot such as those found in the AirMonitorPlots package.

Usage

monitor_select(monitor, id)

monitor_reorder(monitor, id)

Arguments

monitor

mts_monitor object.

id

Vector of deviceDeploymentIDs.

Value

A reordered (subset) of the incoming mts_monitor object. (A list with meta and data dataframes.)

See Also

monitor_filterMeta


AirMonitor documentation built on Sept. 27, 2024, 9:06 a.m.