View source: R/wrcc_identifyMonitorType.R
wrcc_identifyMonitorType | R Documentation |
Examine the column names of the incoming character vector to identify different types of monitor data provided by RAWS.
The return is a list includes everything needed to identify and parse the raw
data using readr::read_tsv()
:
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:
"WRCC_TYPE1
" – ???
"WRCC_TYPE2
" – ???
"WRCC_TYPE3
" – ???
"UNKOWN
" – ???
wrcc_identifyMonitorType(fileString = NULL)
fileString |
character string containing RAWS data |
List including monitorType
, rawNames
, columnNames
and columnTypes
.
## Not run:
library(RAWSmet)
fileString <- wrcc_downloadData(wrccID = 'WENU')
monitorTypeList <- wrcc_identifyMonitorType(fileString)
str(monitorTypeList)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.