fn builtin_cor(
args: &[RValue],
named: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Pearson correlation coefficient of two numeric vectors.
Computes cov(x, y) / (sd(x) * sd(y)). Only method = “pearson” is supported.
@param x numeric vector @param y numeric vector (same length as x) @param method character; only “pearson” is currently supported @return scalar double