Learn R Programming

PWFSLSmoke (version 1.0.16)

wrccDump_createMonitorObject: Ingest WRCC Dump File and Create ws_monitor Object

Description

Ingests a WRCC dump file and converts it into a quality controlled, metadata enhanced ws_monitor object ready for use with all monitor_~ functions.

Steps involved include:

  1. ingest CSV text

  2. parse CSV text

  3. apply quality control

  4. apply clustering to determine unique deployments

  5. enhance metadata to include: elevation, timezone, state, country, site name

  6. reshape data into deployment-by-property meta and and time-by-deployment data dataframes

Usage

wrccDump_createMonitorObject(filepath, clusterDiameter = 1000,
  existingMeta = NULL)

Arguments

filepath

absolute path of the WRCC dump file

clusterDiameter

diameter in meters used to determine the number of clusters (see addClustering)

existingMeta

existing 'meta' dataframe from which to obtain metadata for known monitor deployments

Value

A ws_monitor object with WRCC data.

See Also

wrccDump_parseData

wrcc_qualityControl

addClustering

wrcc_createMetaDataframe

wrcc_createDataDataframe