monitor_extractDataFrame: Extract dataframes from _ws_monitor_ objects

Description Usage Arguments Value Examples

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"]]
monitor_extractMeta(ws_monitor) ws_monitor[["meta"]]

Usage

1
2
3
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
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)

PWFSLSmoke documentation built on July 8, 2020, 7:19 p.m.