Test if input is a data.frame

test_if_dataframe(x)

Arguments

x

object

Value

an error if input (x) is not a data.frame

Examples

# NOT RUN {
# success
test_if_dataframe(airquality)
#fail
test_if_dataframe(AirPassengers)
# }