otCorrelation: Computing correlation matrix from data.frame

Description Usage Arguments Examples

View source: R/otCorrelation.R

Description

Computing correlation matrix from data.frame

Usage

1
2
3
4
5
otCorrelation(
  data,
  use = "pairwise.complete.obs",
  method = c("pearson", "kendall", "spearman")
)

Arguments

data

a data.frame that contains numeric variables only

use

an optional character string which is one of the strings "everything", "all.obs", "complete.obs", na.or.complete", or "pairwise.complete.obs". See the heflp "cor".

method

a character string indicating which correlation coefficient is to be computed. One of "pearson", "kendall", or "spearman" can be abbreviated.

Examples

1
otCorrelation(timevalue[,c(2:11)]) %>% otPrint(digits=3) # show correlation matrix

momoldo/otmR documentation built on March 27, 2021, 3 a.m.