wrcc_parseData: Parse WRCC data string

Description Usage Arguments Value References Examples

View source: R/wrcc_parseData.R

Description

Raw character data from WRCC are parsed into a tibble. The incoming fileString can be read in directly from WRCC using wrcc_downloadData() or from a local file using readr::read_file().

The type of monitor represented by this fileString is inferred from the column names using wrcc_identifyMonitorType() and appropriate column types are assigned. The character data are then processed, read into a tibble and augmented in the following ways:

  1. Spaces at the beginning and end of each line are moved.

  2. All header lines beginning with ':' are removed.

Usage

1
wrcc_parseData(fileString)

Arguments

fileString

character string containing WRCC data

Value

Dataframe of WRCC raw monitor data.

References

Fire Cache Smoke Monitoring Archive

Examples

1
2
3
4
5
## Not run: 
fileString <- wrcc_downloadData(20150701, 20150930, unitID = 'SM16')
tbl <- wrcc_parseData(fileString)

## End(Not run)

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