ez.strcomp: compare if s1 exact the same as s2, but ignore case, space,...

View source: R/basic.R

ez.strcompR Documentation

compare if s1 exact the same as s2, but ignore case, space, punctuation

Description

compare if s1 exact the same as s2, but ignore case, space, punctuation

Usage

ez.strcomp(s1, s2, icase = TRUE, ispace = TRUE, ipunctuation = TRUE)

Arguments

s

string, supports vectorization

i

ignore case, space, punctuation

Value

logic

Note

internally strip the space, punct, and convert case, then use "==" to compare


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.