powered by
Identify the indexes that are simultaneously valid (not missing) in sim and obs.
sim
obs
valindex(sim, obs, ...)# S3 method for default valindex(sim, obs, ...)# S3 method for matrix valindex(sim, obs, ...)
# S3 method for default valindex(sim, obs, ...)
# S3 method for matrix valindex(sim, obs, ...)
A vector with the indexes that are simultaneously valid (not missing) in obs and sim.
zoo, xts, numeric, matrix or data.frame with simulated values
zoo, xts, numeric, matrix or data.frame with observed values
further arguments passed to or from other methods.
Mauricio Zambrano Bigiarini <mauricio.zambrano@ing.unitn.it>
is.na, which
is.na
which
sim <- 1:5 obs <- c(1, NA, 3, NA, 5) valindex(sim, obs)
Run the code above in your browser using DataLab