split_by_metadata {ENCODExplorer} | R Documentation

## Given a metadata data-frame and a vector of column names (split_by), builds a partition of rows based on all possible combinations of the columns identified by split_by.

### Description

Given a metadata data-frame and a vector of column names (split_by), builds a partition of rows based on all possible combinations of the columns identified by split_by.

### Usage

    split_by_metadata(metadata, split_by, simplify = FALSE)

### Arguments

`metadata` | A data.frame with the metadata.
`split_by` | The names of the columns in metadata according to which they should be split.
`simplify` | If TRUE, columns with no discriminatory power will be removed from the resulting Metadata. Furthermore, if there is only one category left, it will be labeled "All".

### Value

A list with information about the new partition.

[Package ENCODExplorer version 2.13.1 Index]