make_comparison_columns: Utility function that will take in columns with several...

Description Usage Arguments Value Examples

View source: R/outlier_analysis_functions.R

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

1

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

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

blacksheepr documentation built on Nov. 8, 2020, 7:57 p.m.