powered by
Return a subset of columns for a matrix or data frame
SubsetColumn(data, code, invert = FALSE)
Matrix or data frame with column names
Pattern for matching within column names
Invert the search?
Returns a subset of data. If invert = TRUE, returns data where colnames do not contain code, otherwise returns data where colnames contain code
# NOT RUN { head(as.matrix(SubsetColumn(data = pbmc_small@raw.data, code = 'ATGC'))[, 1:4]) # }
Run the code above in your browser using DataLab