Description Usage Arguments Value References Examples
View source: R/wrcc_parseData.R
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:
Spaces at the beginning and end of each line are moved.
All header lines beginning with ':' are removed.
1 | wrcc_parseData(fileString)
|
fileString |
character string containing WRCC data |
Dataframe of WRCC raw monitor data.
Fire Cache Smoke Monitoring Archive
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Fail gracefully if any resources are not available
try({
fileString <- wrcc_downloadData(20150701, 20150930, unitID = 'SM16')
tbl <- wrcc_parseData(fileString)
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.