PWFSLSmoke (version 1.2.117)

monitor_extractDataFrame: Extract dataframes from ws_monitor objects

Description

These functions are convenient wrappers for extracting the dataframes that comprise a ws_monitor object. These functions are designed to be useful when manipulating data in a pipe chain.

Below is a table showing equivalent operations for each function.

Function Equivalent Operation
monitor_extractData(ws_monitor) ws_monitor[["data"]]

Usage

monitor_extractData(ws_monitor)

monitor_extractMeta(ws_monitor)

Arguments

ws_monitor

ws_monitor object to extract dataframe from.

Value

A dataframe from the given ws_monitor object

Examples

Run this code
# NOT RUN {
library(PWFSLSmoke)

ws_monitor <- Northwest_Megafires

data <- ws_monitor %>%
  monitor_subset(
    stateCodes = "WA",
    tlim = c(20150801, 20150831)
  ) %>%
  monitor_extractData()

meta <- ws_monitor %>%
  monitor_subset(
    stateCodes = "WA",
    tlim = c(20150801, 20150831)
  ) %>%
  monitor_extractMeta()

dplyr::glimpse(meta)
dplyr::glimpse(data)

# }

Run the code above in your browser using DataLab