monitor_arrange {AirMonitor}R Documentation

Order mts_monitor time series by metadata values

Description

The variable(s) in ... are used to specify columns of monitor$meta to use for ordering. Under the hood, this function uses arrange on monitor$meta and then reorders monitor$data to match.

Usage

monitor_arrange(monitor, ...)

Arguments

monitor

mts_monitor object.

...

variables in mts$meta.

Value

A reorderd version of the incoming mts time series object. (A list with meta and data dataframes.)

See Also

monitor_select

Examples

library(AirMonitor)

Camp_Fire$meta$elevation[1:10]

byElevation <-
  Camp_Fire %>%
  monitor_arrange(elevation)

byElevation$meta$elevation[1:10]


[Package AirMonitor version 0.4.0 Index]