monitor_arrange: Order _mts_monitor_ time series by metadata values

View source: R/monitor_arrange.R

monitor_arrangeR 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]


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