validColname: Find valid string among character vector from approximate...

Description Usage Arguments Value Examples

View source: R/mytable.R

Description

Find valid string among character vector from approximate string

Usage

1

Arguments

pattern

character string to be matched in the given character

x

a character vector where matches are sought

Value

returns NA in case of no matched string found or a character string in string vector x

Examples

1
2
3
a="dx"
b=c("Age","Sex","Dx")
validColname(a,b)

moonBook documentation built on Jan. 5, 2022, 9:06 a.m.