Function to return the column number if a given pattern is contained in the column names of a data
checkColumnNoForPatternInColumnname(pattern, column.names)
a string that needs to be checked
column names actually have
TRUE , if success FALSE, if failure
# NOT RUN { checkColumnNoForPatternInColumnname("age","female_age") # }
Run the code above in your browser using DataCamp Workspace