IPDFileCheck (version 0.5.0)

getColumnNoForPatternInColumnname: Function to return the column number if a given pattern is contained in the column names of a data

Description

Function to return the column number if a given pattern is contained in the column names of a data

Usage

getColumnNoForPatternInColumnname(pattern, column.names)

Arguments

pattern

a string that needs to be checked

column.names

column names actually have

Value

column number, if success -1, if failure

Examples

Run this code
# NOT RUN {
getColumnNoForPatternInColumnname("age","female_age")
# }

Run the code above in your browser using DataCamp Workspace