get_column_no_colnames {valueEQ5D} | R Documentation |
Function to return the column number for column name
get_column_no_colnames(data, column_name)
data |
a data frame |
column_name |
column names of the data frame |
column number, if success -1, if failure
get_column_no_colnames(data.frame(age = rep(20, 4),
sex = rep("male", 4)), "sex")