validColname {moonBook} | R Documentation |
Find valid string among character vector from approximate string
Description
Find valid string among character vector from approximate string
Usage
validColname(pattern, x)
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
a="dx"
b=c("Age","Sex","Dx")
validColname(a,b)
[Package moonBook version 0.3.1 Index]