Skip to contents

Remove age information from a vector of category names

Usage

remove_age(categories, re_templates, prefix = "")

memoise_remove_age(categories, re_templates, prefix = "")

Arguments

categories

vector of category names

re_templates

list of templates that resolve to regular expressions for matching age information contained in category names

prefix

pattern to match at the beginning of the string that marks the beginning of age information