powered by
Function to return the column number if a given pattern is contained in the column names of a data
get_colno_pattern_colname(pattern, column_names)
column number, if success error, if failure
a string that needs to be checked
column names actually have
get_colno_pattern_colname("age", "female_age")
Run the code above in your browser using DataLab