valueIndex1D: VALUE index calculation

View source: R/validation1D.R

valueIndex1DR Documentation

VALUE index calculation

Description

Atomic function to compute VALUE indices from a time series

Usage

valueIndex1D(ts, dates = NULL, index.codes)

Arguments

ts

A vector containing the data

dates

A character (or POSIXct) vector following the format “YYYY-MM-DD” (i.e., format = "%Y-%m-%d" as in strptime). Note that the dates are not required by all indices, so the default is NULL. The function will yield an error if dates are required but not supplied.

index.codes

A character vector of index codes to be computed.

Value

A named list of output indices

Author(s)

J. Bedia

Examples

data(tmin.det)
valueIndex1D(tmin.det$obs, dates = tmin.det$dates,
             index.codes = c("AC1", "AC2", "FA25", "FA30", "FB15", "AnnualCycleAmp"))

SantanderMetGroup/VALUE documentation built on July 8, 2023, 7:03 a.m.