Description Usage Arguments Examples
View source: R/otCorrelation.R
Computing correlation matrix from data.frame
1 2 3 4 5 | otCorrelation(
data,
use = "pairwise.complete.obs",
method = c("pearson", "kendall", "spearman")
)
|
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. |
1 | otCorrelation(timevalue[,c(2:11)]) %>% otPrint(digits=3) # show correlation matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.