powered by
Function to check the given column exists
check_column_exists(column_name, data)
0 if success error if failure
a column name
data frame
check_column_exists("age", data.frame("Age" = c(21, 15), "Name" = c("John", "Dora")))
Run the code above in your browser using DataLab