CSIimport: Import salinity value files.

Description Usage Arguments Value Examples

Description

Read in salinity values files of various intervals.

Usage

1
2
CSIimport(file, interval = c("monthly", "daily", "24hour", "interval",
  "unit", "hourly", "NERRS"))

Arguments

file

character The file to import.

interval

character The timestamp frequency – 'daily'/'24hour', 'interval'/'unit'/'hourly', or 'monthly' (default). Alternatively, 'NERRS' can be used to import NERRS-format data.

Value

A salinity object data.frame for calculating CSI values; has Year and Month timestamp columns, with (optionally multiple) individual columns of site salinity values.

Examples

1
2
3
# Data file with Year and Month columns
data_path <- system.file("extdata", "Monthly_Coastal_EDEN.csv", package = "CSI")
sal <- CSIimport(data_path, interval = "monthly")

USGS-EDEN/CSI documentation built on Oct. 11, 2019, 11:57 p.m.