These functions are convenient wrappers for extracting the dataframes that
comprise a raws_timeseries object. These functions are designed to be useful when
manipulating data in a pipeline chain using %>%
.
raws_getData(rawsObject = NULL, forOpenair = FALSE)
raws_getMeta(rawsObject = NULL)
raws_timeseries object to extract dataframe from
Logical instructions to clean data for use with openair
A dataframe from the given raws_timeseries object
# \donttest{
library(RAWSmet)
data <-
example_cefa_Saddle_Mountain %>%
raws_getData(forOpenair = TRUE)
# openair::timePlot(
# data,
# pollutant = "temperature"
# )
example_cefa_Saddle_Mountain %>%
raws_getMeta() %>%
head()
#> # A tibble: 1 × 14
#> deviceDeploymentID deviceID locationID locationName longitude latitude
#> <chr> <chr> <chr> <chr> <dbl> <dbl>
#> 1 84a66be3fc5b535e_452701 452701 84a66be3fc5b… SADDLE MOUN… -120. 46.7
#> # ℹ 8 more variables: elevation <dbl>, countryCode <chr>, stateCode <chr>,
#> # timezone <chr>, nwsID <chr>, wrccID <chr>, nessID <chr>, agencyName <chr>
# }