CSIimport_monthly: Import monthly-value files for CSI calculation

CSIimport_monthlyR Documentation

Import monthly-value files for CSI calculation

Description

Read in monthly salinity values file.

Usage

CSIimport_monthly(file)

Arguments

file

character The monthly-value file to import. Must have Year and Month columns, or single YearMo column = 'YYYY-MM', and columns of salinty values by site.

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

# Data file with Year and Month columns
data_path <- system.file("extdata", "Monthly_Coastal_EDEN.csv", package = "CSI")
sal <- CSIimport_monthly(data_path)

# Data file with single YearMo column
data_path <- system.file("extdata", "Monthly_ACE_Basin.csv", package = "CSI")
sal <- CSIimport_monthly(data_path)


USGS-R/CSI documentation built on April 20, 2023, 3:57 p.m.