cov {SparkR}R Documentation

cov

Description

Compute the sample covariance between two expressions.

Usage

## S4 method for signature 'characterOrColumn'
cov(x, col2)

## S4 method for signature 'characterOrColumn,characterOrColumn'
covar_samp(col1, col2)

See Also

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

Examples

## Not run: 
cov(df$c, df$d)
cov("c", "d")
covar_samp(df$c, df$d)
covar_samp("c", "d")

## End(Not run)

[Package SparkR version 2.0.0 Index]