powered by
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 )
A data.frame with cor.test p.value and estimate
A numeric matrix or data.frame
your chosen variable,only one.
drop values in var
drop values in other columns
minimum number of observations after dropping
Xiaojie Sun
cor.full
x = iris[,-5] cor.one(x,"Sepal.Width")
Run the code above in your browser using DataLab