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.
monitor_arrange(monitor, ...)A reordered version of the incoming mts time series object.
(A list with meta and data dataframes.)
library(AirMonitor)
Camp_Fire$meta$elevation[1:10]
#> [1] 189.10 109.42 761.33 62.80 1116.47 97.00 2291.00 822.42 1830.41
#> [10] 872.01
byElevation <-
Camp_Fire %>%
monitor_arrange(elevation)
byElevation$meta$elevation[1:10]
#> [1] 0.90 0.90 1.50 2.21 2.70 2.70 4.00 5.07 5.80 6.10