util_filter_names_by_regexps function

Filter collection based on its names() using regular expressions

Filter collection based on its names() using regular expressions

util_filter_names_by_regexps(collection, regexps)

Arguments

  • collection: a named collection (list, vector, ...)
  • regexps: character a vector of regular expressions

Returns

collection reduced to entries, that's names match at least any expression from regexps

Examples

## Not run: # internal function util_filter_names_by_regexps(iris, c("epa", "eta")) ## End(Not run)

See Also

Other string_functions: util_abbreviate_unique(), util_pretty_vector_string(), util_set_dQuoteString(), util_set_sQuoteString(), util_sub_string_left_from_.(), util_sub_string_right_from_.(), util_translate()

  • Maintainer: Stephan Struckmann
  • License: BSD_2_clause + file LICENSE
  • Last published: 2025-03-05

Downloads (last 30 days):