mts_pull | R Documentation |
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
.
mts_pull(mts = NULL, var = NULL)
mts |
mts object. |
var |
A variable name found in the |
An array of values.
library(MazamaTimeSeries)
# Metadata
example_mts %>%
mts_pull("communityRegion") %>%
table() %>%
sort(decreasing = TRUE)
# Data for a specific ID
example_mts %>%
mts_pull("da4cadd2d6ea5302_4686")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.