csv2rB3: Convert a csv file of time-series observations into an rB3...

Description Usage Arguments Details Examples

Description

Imports a csv file to rB3

Usage

1
csv2rB3(filePath, siteName, lat, lon, country)

Arguments

filePath

file path of source csv file, timestamps in first column as yyyy-mm-dd hh:mm:ss with header "DateTime"

siteName

name of the monitoring station (character)

lat

latitude of the monitoring station (numeric, decimal WGS84 degrees)

lon

longitude of the monitoring station (numeric, decimal WGS84 degrees)

country

country of origin (character)

Details

Creates a list of dataframes, including:
1. 'srcDF' ; the unmodified data
2. 'qcDF' ; a copy of the data, which will be modified by rB3
3. 'logDF' ; a 'log' file with similar structure to srcDF and qcDF, to store QC operations log
4. 'logKey' ; control key with logIDs and explanatory columns 5. 'ctrls' ; controls, extracted from extra header rows in the raw csv files ('ctrls')
6. 'metaD' ; site metadata, create from additional input args ('metaD')

Import control variables by matching header rows (first col) to the following tags:

FIRST COLUMN : FORMAT : COLUMNS 2:ncol ...

"measVar" : character : measurement variable represented by the column
"units" : character : units of measurement
"sensorDist" : numeric : vertical position of the sensor (e.g., below water surface, above ground, etc)
"plotLabels" : character : label that will appear on rB3 plot panels
"methodAgg" : character : method of aggregation used for rB3stdze function
"pullAgg" : character : direction of aggregation for rB3stdze function ('left', 'centre' or 'right')
"filterMin" : numeric : minimum allowable value
"filterMax" : numeric : maximum allowable value
"filterRoc" : numeric : maximum allowable rate of change
"filterReps" : numeric : maximum allowable repeated consecutive values
"filterMean" : numeric : time window (in hours) for running mean w/ standrard deviation filter
"filterSD" : numeric : number of standard deviations for cutoff

Examples

1
csv2rB3("Rotorua.csv", siteName = "Lake_Rotorua", lat = -38, long = 176, country = "NZ")

kohjim/rB3 documentation built on May 10, 2019, 9:51 a.m.