mts_arrange: Order mts time series by metadata values
Description
The variable(s) in ... are used to specify columns of
mts$meta to use for ordering. Under the hood, this
function uses arrange on mts$meta and then
reorders mts$data to match.
Usage
mts_arrange(mts, ...)
Value
A reorderd version of the incoming mts time series object.
(A list with meta and data dataframes.)
library(MazamaTimeSeries)
example_mts$meta$latitude[1:10]
# Filter for all labels with "SCSH"byElevation <-
example_mts %>%
mts_arrange(latitude)
byElevation$meta$latitude[1:10]