augmentMatrixColumnByID: Augment a matrix by ID in the direction of columns

Description Usage Arguments Details Value

View source: R/formatting_p.R

Description

similar to fillVecByID, we might want to augment a matrix by column names specified by ID

Usage

1
2
augmentMatrixColumnByID(mat, ID, computeNA = FALSE, pNAthr = 0.8,
  data.matrix = TRUE)

Arguments

mat

a matrix to be augmented

ID

IDs targeted for; should be simialr to colnames(mat)

computeNA

whether to recompute columns with all NA

pNAthr

percentage of NA to be called as NA columns

Details

It is possible to augment an already augmented matrix. In this case, we'd be carefull about filledColID and naColID

Value

an augMat object (also inherits matrix)


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.