wrapCorTest.data.frame: Wrap cor.test (test of liner correlation).

View source: R/CorTest.R

wrapCorTest.data.frameR Documentation

Wrap cor.test (test of liner correlation).

Description

Wrap cor.test (test of liner correlation).

Usage

## S3 method for class 'data.frame'
wrapCorTest(
  x,
  Column1Name,
  Column2Name,
  ...,
  alternative = c("two.sided", "less", "greater"),
  method = c("pearson", "kendall", "spearman"),
  exact = NULL,
  conf.level = 0.95,
  continuity = FALSE,
  na.rm = FALSE
)

Arguments

x

data.frame

Column1Name

character column 1 name

Column2Name

character column 2 name

...

extra arguments passed to cor.test

alternative

passed to cor.test

method

passed to cor.test

exact

passed to cor.test

conf.level

passed to cor.test

continuity

passed to cor.test

na.rm

logical, if TRUE remove NA values

Value

wrapped stat

Examples


d <- data.frame(x=c(1,2,3,4,5,6,7,7),
                y=c(1,1,2,2,3,3,4,4))
wrapCorTest(d,'x','y')



sigr documentation built on Aug. 20, 2023, 9:06 a.m.