Learn R Programming

moonBook (version 0.3.1)

validColname: 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

Run this code
# NOT RUN {
a="dx"
b=c("Age","Sex","Dx")
validColname(a,b)

# }

Run the code above in your browser using DataLab