Learn R Programming

hydroGOF (version 0.2-2)

valindex: Valid Indexes

Description

Identify the indexes that are simultaneously valid (not missing) in sim and obs.

Usage

valindex(obs, sim)

Arguments

obs
numeric, zoo, matrix or data.frame with observed values
sim
numeric, zoo, matrix or data.frame with simulated values

Value

  • A vector with the indexes that are simultaneously valid (not missing) in obs and sim.

See Also

is.na, which

Examples

Run this code
sim <- 1:5
obs <- c(1, NA, 3, NA, 5)
valindex(sim, obs)

Run the code above in your browser using DataLab