calcCorrMatrix: calcCorrMatrix

Description Usage Arguments Examples

View source: R/FUNCTION_calcCorrMatrix.R

Description

This function generates a correlation matrix with various options. For now, it is just a wrapper function for cor() function from base R stats package. Plan is to build in alternative approaches.

Usage

1
calcCorrMatrix(X, method = "pearson")

Arguments

X

a matrix or a data frame with each column = 1 variable and each row 1 time step (any rows with 1 or more NA will be excluded)

method

for now, one of "pearson" (default), "kendall", or "spearman":

Examples

1

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.