do.spearman: Do Spearman Function This function lets you perform spearman...

Description Usage Arguments Examples

View source: R/do.spearman.R

Description

Do Spearman Function This function lets you perform spearman correlations in dplyr syntax.

Usage

1

Arguments

x

Numeric Predictor

y

Numeric Outcome

Examples

1
2
3
4
mtcars %>%
group_by(cyl) %>%
 summarize(pvalue=as.numeric(do.spearman(wt,mpg)[3]),
           rho=as.numeric(do.spearman(wt,mpg)[4]))

elittmann/erictools documentation built on Feb. 2, 2020, 11:01 p.m.