augmentMatrixRowByID: Augment a data frame by ID in the direction of rows

Description Usage Arguments Value

View source: R/formatting_p.R

Description

similar to fillVecByID, we might want to augment a matrix by column names specified by ID We cannot directly using augmentMatrixColumnByID with transposed input since data frame has side effects converting all numeric to string

Usage

1
augmentMatrixRowByID(mat, ID, computeNA = FALSE, pNAthr = 0.8)

Arguments

mat

a matrix or data frame to be augmented

ID

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

computeNA

whether to recompute columns with all NA

pNAthr

percentage of NA to be called as NA columns

Value

an augMat object (also inherits matrix)


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