Description Usage Arguments Value References Examples
View source: R/airsis_identifyMonitorType.R
Examine the column names of the incoming dataframe (or first line of raw text) to identify different types of monitor data provided by AIRSIS.
The return is a list includes everything needed to identify and parse the raw
data using readr::read_csv()
:
monitorType
– identification string
rawNames
– column names from the data (including special characters)
columnNames
– assigned column names (special characters repaced with '.')
columnTypes
– column type string for use with readr::read_csv()
The monitorType
will be one of:
"BAM1020
" – BAM1020 (e.g. USFS #49 in 2010)
"EBAM
" – EBAM (e.g. USFS #1026 in 2010)
"ESAM
" – E-Sampler (e.g. USFS #1002 in 2010)
"UNKOWN
" – ???
1 |
df |
dataframe or raw character string containing AIRSIS data |
List including monitorType
, rawNames
, columnNames
and columnTypes
.
Interagency Real Time Smoke Monitoring
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Fail gracefully if any resources are not available
try({
fileString <- airsis_downloadData( 20150701, 20151231, provider='USFS', unitID='1026')
monitorTypeList <- airsis_identifyMonitorType(fileString)
}, silent = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.