Learn R Programming

corrselect (version 3.0.5)

as.data.frame.CorrCombo: Coerce CorrCombo to a Data Frame

Description

Converts a CorrCombo object into a data frame of variable combinations.

Usage

# S3 method for CorrCombo
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Value

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.

Arguments

x

A CorrCombo object.

row.names

Optional row names for the output data frame.

optional

Logical. Passed to data.frame().

...

Additional arguments passed to data.frame().

See Also

CorrCombo

Examples

Run this code
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