as.regex: Convert or test for regex objects

Description Usage Arguments Value Examples

View source: R/regex-methods.R

Description

as.regex gives objects the class "regex". is.regex tests for objects of class "regex".

Usage

1
2
3

Arguments

x

An object to test or convert.

Value

as.regex returns the inputs object, with class c("regex", "character"). is.regex returns TRUE when the input inherits from class "regex" and FALSE otherwise.

Examples

1
2
x <- as.regex("month.abb")
is.regex(x)

richierocks/rebus.base documentation built on May 27, 2019, 8:47 a.m.