row_subset() is a wrapper around m[, str_detect(rownames(m), pattern)]

row_subset(m, pattern, negate = FALSE)

Arguments

m

Input matrix or data frame.

pattern

Pattern to look for. The default interpretation is a regular expression, as described in stringi::stringi-search-regex. Control options with 'regex()'.

negate

If 'TRUE', return non-matching rows.

Value

A matrix.

Details

Vectorised over rownames('m') and 'pattern'