Learn R Programming

Unicode (version 15.1.0-1)

u_char_match: Unicode Character Matching

Description

Match Unicode characters to Unicode character ranges.

Usage

u_char_match(x, table, nomatch = NA_integer_)
x %uin% table

Arguments

x

an R object which can be coerced to a u_char vector of Unicode characters via as.u_char.

table

an R object coercible to a u_char_range vector of Unicode character range via as.u_char_range.

nomatch

the value to be returned (after coercion to integer) in the case when no match is found.

Details

u_char_match returns a vector of the positions of the (first) matches of the Unicode characters given by x (after coercion via as.u_char) to the Unicode character ranges given by table (after coercion via as.u_char_range).

%uin% returns a logical vector indicating if there was a match or not.