make_comparison_columns {blacksheepr} | R Documentation

## Utility function that will take in columns with several subcategories, and output several columns each with binary classifications. ex) col1: A,B,C >> colA: A,notA,notA; colB: notB,B,notB; colC: notC,notC,C

### Description

Utility function that will take in columns with several subcategories, and output several columns each with binary classifications. ex) col1: A,B,C >> colA: A,notA,notA; colB: notB,B,notB; colC: notC,notC,C

### Usage

    make_comparison_columns(intable)

### Arguments

`intable` | table where each column has more than one subcategory, can be multiple columns

### Value

an expanded table with each of the columns as a binary labeling of each subcategory.

### Examples

    data("sample_annotationdata")
    new_comparisons <- make_comparison_columns(
        sample_annotationdata[,1,drop=FALSE])

[Package blacksheepr version 1.8.0 Index]