CSIwrite: Write monthly CSI values from 3D csi object to files

CSIwriteR Documentation

Write monthly CSI values from 3D csi object to files

Description

Write monthly CSI values from 3D csi object to text files, one file per site.

Usage

CSIwrite(csi, dir = paste0(getwd(), "/csi_values"))

Arguments

csi

array A 3D array of CSI values with dimensions of number of months covered, scale of months analysed (typically 1-24), and number of sites.

dir

character Directory to write output files to.

Examples

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


USGS-EDEN/CSI documentation built on March 29, 2022, 6:35 a.m.