Learn R Programming

PWFSLSmoke (version 1.0.20)

wrccDump_identifyMonitorType: Identify WRCC Dump File Monitor Type

Description

Examine the column names of the incoming character vector to identify different types of monitor data provided by WRCC.

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:

  • "WRCC_TYPE1" -- ???

  • "WRCC_TYPE2" -- ???

  • "UNKOWN" -- ???

This function is intended for internal use at the Pacific Wildland Fire Sciences Lab.

Usage

wrccDump_identifyMonitorType(fileString)

Arguments

fileString

character string containing WRCC dump file

Value

List including monitorType, rawNames, columnNames and columnTypes.

References

WRCC Fire Cache Smoke Monitor Archive