powered by
Converts a CorrCombo object into a data frame of variable combinations.
CorrCombo
# S3 method for CorrCombo as.data.frame(x, row.names = NULL, optional = FALSE, ...)
A data frame where each row corresponds to a subset of variables. Columns are named VarName01, VarName02, ..., up to the size of the largest subset. Subsets shorter than the maximum length are padded with NA.
VarName01
VarName02
NA
A CorrCombo object.
Optional row names for the output data frame.
Logical. Passed to data.frame().
data.frame()
Additional arguments passed to data.frame().
set.seed(1) mat <- matrix(rnorm(100), ncol = 10) colnames(mat) <- paste0("V", 1:10) res <- corrSelect(cor(mat), threshold = 0.5) as.data.frame(res)
Run the code above in your browser using DataLab