cor_df: Pearson's correlation coefficient of bivariate data

Description Usage Arguments Value Examples

View source: R/Module1_code.R

Description

Pearson's correlation coefficient of bivariate data

Usage

1
cor_df(bivar_data)

Arguments

bivar_data

A data-frame or matrix, the first two columns of which contain the two vectors for which the correlation coefficient is required

Value

the Pearson correlation coefficient of bivar_data[,1] and bivar_data[,2]

Examples

1
2
A <- data.frame(x=rnorm(10), y=rnorm(10, mean=2))
cor_df(A)

EllaKaye/Module1 documentation built on May 6, 2019, 3:25 p.m.