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
make_comparison_columns(intable)
intable |
table where each column has more than one subcategory, can be multiple columns |
an expanded table with each of the columns as a binary labeling of each subcategory.
data("sample_annotationdata") new_comparisons <- make_comparison_columns( sample_annotationdata[,1,drop=FALSE])