Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.regex

Convert or test for regex objects


Description

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

Usage

as.regex(x)

is.regex(x)

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

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

rebus.base

Core Functionality for the 'rebus' Package

v0.0-3
Unlimited
Authors
Richard Cotton [aut, cre]
Initial release
2017-04-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.