subset_by_colnames: Subset a 2D structure by a vector of column names.
Description
Not all colnames are necessarily in the columns of data; in that case this
returns NA.
Usage
subset_by_colnames(colnames, data)
Arguments
- colnames
a character vector
- data
a matrix or data frame