monitor_pull {AirMonitor} | R Documentation |
Extract a column of metadata or data
Description
This function acts similarly to pull
working on
monitor$meta
or monitor$data
. Data are returned as a simple array.
Data are pulled from whichever dataframe contains var
.
Usage
monitor_pull(monitor = NULL, var = NULL)
Arguments
monitor |
mts_monitor object. |
var |
A variable name found in the |
Value
An array of values.
Examples
library(AirMonitor)
# Metadata
Camp_Fire %>%
monitor_pull("deploymentType") %>%
table()
# Data for a specific ID
Camp_Fire %>%
monitor_dailyStatistic(mean) %>%
monitor_pull("6bbab08e3786ef66_840060450006") %>%
round(0)
# Associated dates
Camp_Fire %>%
monitor_dailyStatistic(mean) %>%
monitor_pull("datetime")
[Package AirMonitor version 0.4.0 Index]