CSIimport_NERRS: Import NERRS-format unit-value files for CSI calculation

CSIimport_NERRSR Documentation

Import NERRS-format unit-value files for CSI calculation

Description

Read in NERRS-format unit value salinity file.

Usage

CSIimport_NERRS(file, mindays = 15)

Arguments

file

character The NERRS-format unit-value file to import (either through the Data Graphing and Export System or through the Advanced Query System; see website for reference: http://cdmo.baruch.sc.edu/get/landing.cfm).

mindays

integer the minimum number of daily values (any number of values per day) needed to produce a mean value for a given month (default 15). Months with fewer data values than this will be asigned mean NA.

Value

A salinity object data.frame for calculating CSI values; has Year and Month timestamp columns, with column of site salinity values.

Examples

# NERRS-format data file
data_path <- system.file("extdata", "NIWDCWQ.csv.zip", package="CSI")
unzip(data_path, exdir = getwd())
sal <- CSIimport_NERRS("NIWDCWQ.csv")


bmccloskey/CSI documentation built on April 23, 2023, 12:53 p.m.