View source: R/9_cor_t_choose.R
cor.one | R Documentation |
cor.test for all variables(each two columns)
cor.one(
x,
var,
drop.var = min(x[, var]) - 0.001,
drop.other = min(x[, -which(colnames(x) == var)]) - 0.001,
min.obs = 10
)
x |
A numeric matrix or data.frame |
var |
your chosen variable,only one. |
drop.var |
drop values in var |
drop.other |
drop values in other columns |
min.obs |
minimum number of observations after dropping |
A data.frame with cor.test p.value and estimate
Xiaojie Sun
cor.full
x = iris[,-5]
cor.one(x,"Sepal.Width")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.