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