powered by
Test if input is a data.frame
test_if_dataframe(x)
an error if input (x) is not a data.frame
object
if (FALSE) { # success test_if_dataframe(airquality) #fail test_if_dataframe(AirPassengers) }
Run the code above in your browser using DataLab