powered by
Find valid string among character vector from approximate string
validColname(pattern, x)
character string to be matched in the given character
a character vector where matches are sought
returns NA in case of no matched string found or a character string in string vector x
# NOT RUN { a="dx" b=c("Age","Sex","Dx") validColname(a,b) # }
Run the code above in your browser using DataLab