wrcc_identifyMonitorType: Identify RAWS station type

View source: R/wrcc_identifyMonitorType.R

wrcc_identifyMonitorTypeR Documentation

Identify RAWS station type

Description

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" – ???

Usage

wrcc_identifyMonitorType(fileString = NULL)

Arguments

fileString

character string containing RAWS data

Value

List including monitorType, rawNames, columnNames and columnTypes.

References

RAWS USA Climate Archive

Examples

## Not run: 
library(RAWSmet)

fileString <- wrcc_downloadData(wrccID = 'WENU')
monitorTypeList <- wrcc_identifyMonitorType(fileString)
str(monitorTypeList)

## End(Not run)

MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.