How does one \"throw\" an error in R? I have a function that takes a data frame and some column names and does stuff with them. If the columns don\'t exist, I want the fun
Simple example:
f <- function(a, b){ if (a == 0){ stop("error message") } }