rsquare: compute the coefficient of determination between simulated...

Description Usage Arguments Value

View source: R/performance_metrics.R

Description

This function compute the compute the coefficient of determination using the cor() function between simulated and observed data

Usage

1
rsquare(obs, sim, na.rm = TRUE, method = c("pearson", "kendall", "spearman"))

Arguments

obs

numeric vector. Observed streamflow vector.

sim

numeric vector. Simulated streamflow vector.

na.rm

logical. Whether missing values should be ignored.

method

character. see cor() function.

Value

Returns a float value corresponding to the coefficient of determination.


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.