dot-chColNa: Check Column Names from Matrix Or data.frame

.chColNaR Documentation

Check Column Names from Matrix Or data.frame

Description

Check matrix or data.frame for containing columns with specified name and optionally remove other columns (by their names)

Usage

.chColNa(x, colNa = "index", rmCol = NULL, callFrom = NULL)

Arguments

x

(matrix or data.frame)

colNa

(character)

rmCol

(character)

callFrom

(character) allow easier tracking of message(s) produced

Value

This function returns a matrix or data.frame with adjusted columns

See Also

scoreFragments

Examples

ma1 <- matrix(1:6, nrow=2, dimnames=list(NULL, c("index","aa","bb")))
.chColNa(ma1)
.chColNa(ma1, colNa="zz", rmCol="aa") 

wrTopDownFrag documentation built on June 8, 2025, 1:34 p.m.