mts_pull {MazamaTimeSeries} | R Documentation |
Extract a column of metadata or data
Description
This function acts similarly to dplyr::pull()
working on
mts$meta
or mts$data
. Data are returned as a simple array.
Data are pulled from whichever dataframe contains var
.
Usage
mts_pull(mts = NULL, var = NULL)
Arguments
mts |
mts object. |
var |
A variable name found in the |
Value
An array of values.
Examples
library(MazamaTimeSeries)
# Metadata
example_mts %>%
mts_pull("communityRegion") %>%
table() %>%
sort(decreasing = TRUE)
# Data for a specific ID
example_mts %>%
mts_pull("da4cadd2d6ea5302_4686")
[Package MazamaTimeSeries version 0.3.0 Index]