grepl_ClusterCategory: Find ClusterCategory pattern

Description Usage Arguments Value Examples

View source: R/grepl_ClusterCategory.R

Description

Find a substring in a comma-separated string

Usage

1

Arguments

x

The character vector to search in.

table

A character vector of terms to search for.

Value

Equivalent to grepl(table, x, fixed = TRUE) or grepl(paste0(table, collapse = "|"), x) for sufficiently fixed patterns in table.

Examples

1
2
x <- c("Other", "Foo, Other", "Childcare, Education")
grepl_ClusterCategory(x, c("Education", "Other"))

HughParsonage/dhhs documentation built on Dec. 17, 2021, 11:22 p.m.