.chColNa | R Documentation |
Check matrix or data.frame for containing columns with specified name and optionally remove other columns (by their names)
.chColNa(x, colNa = "index", rmCol = NULL, callFrom = NULL)
x |
(matrix or data.frame) |
colNa |
(character) |
rmCol |
(character) |
callFrom |
(character) allow easier tracking of message(s) produced |
This function returns a matrix or data.frame with adjusted columns
scoreFragments
ma1 <- matrix(1:6, nrow=2, dimnames=list(NULL, c("index","aa","bb")))
.chColNa(ma1)
.chColNa(ma1, colNa="zz", rmCol="aa")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.