
Valid Indexes
valindex.RdIdentify the indexes that are simultaneously valid (not missing) in sim and obs.
Usage
valindex(sim, obs, ...)
# Default S3 method
valindex(sim, obs, ...)
# S3 method for class 'matrix'
valindex(sim, obs, ...)Note
This function is used in the functions of this package for removing missing values from the observed and simulated time series.
Examples
sim <- 1:5
obs <- c(1, NA, 3, NA, 5)
valindex(sim, obs)
#> [1] 1 3 5