make_PA_matrix: Create a presence/asbence (PA) matrix

Description Usage Arguments Value Examples

Description

This function given a list of vectors containing various elements (e.g. gene names) will create a matrix with the elements as rows and each vector as a column. TRUE/FALSE values wil indicate whether the element was found part of the vector

Usage

1

Arguments

inList

List of vectors containing elements.

Value

A matrix containing various vector elements as rows and the names in the list as columns

Examples

1
2
3
4
5
v1 <- c("EZH2", "B2M", "RCOR1", "CREBBP")
v2 <- c("LCOR", "NCOR1", "MLL2", "CREBBP", "CD58")
v3 <- c("TP53", "UNC80", "CREBBP")
inList <- list("groupA" = v1, "groupB" = v2, "groupC" = v3)
make_PA_matrix(inList)

tinyheero/tinyutils documentation built on May 31, 2019, 3:36 p.m.