Learn R Programming

rIACI (version 1.0.0)

output_all: Output IACI of all grids

Description

Processes all CSV files in the input directory and outputs the results to the output directory.

Usage

output_all(
  si,
  input_dir,
  output_dir,
  freq = c("monthly", "seasonal"),
  base.range = c(1961, 1990),
  time.span = c(1961, 2022)
)

Value

None. Results are saved to the output directory.

Arguments

si

Data frame. Sea level input data.

input_dir

Character. Directory containing input CSV files.

output_dir

Character. Directory to save output files.

freq

Character. Frequency of calculation, either "monthly" or "seasonal".

base.range

Numeric vector. Base range years (default is c(1961, 1990)).

time.span

Numeric vector. Time span for output data (default is c(1961, 2022)).

Examples

Run this code
if (FALSE) {
# Assume we have sea level data 'si' and input/output directories
input_dir <- "path/to/input/csv/files"
output_dir <- "path/to/save/output/files"
# Run the output_all function with monthly frequency
output_all(si, input_dir, output_dir, freq = "monthly")
}

Run the code above in your browser using DataLab