Description Usage Arguments Examples
View source: R/FUNCTION_calcCorrMatrix.R
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.
1 | calcCorrMatrix(X, method = "pearson")
|
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": |
1 | M <- calcCorrMatrix(mtcars)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.