Learn R Programming

SparkR (version 2.1.2)

covar_pop: covar_pop

Description

Compute the population covariance between two expressions.

Usage

covar_pop(col1, col2)

# S4 method for characterOrColumn,characterOrColumn covar_pop(col1, col2)

Arguments

col1

First column to compute cov_pop.

col2

Second column to compute cov_pop.

See Also

Other math_funcs: acos, asin, atan2, atan, bin, bround, cbrt, ceil, conv, corr, cosh, cos, cov, expm1, exp, factorial, floor, hex, hypot, log10, log1p, log2, log, pmod, rint, round, shiftLeft, shiftRightUnsigned, shiftRight, signum, sinh, sin, sqrt, tanh, tan, toDegrees, toRadians, unhex

Examples

Run this code
# NOT RUN {
covar_pop(df$c, df$d)
covar_pop("c", "d")
# }

Run the code above in your browser using DataLab