naniar (version 0.4.2)

test_if_dataframe: Test if input is a data.frame

Description

Test if input is a data.frame

Usage

test_if_dataframe(x)

Arguments

x

object

Value

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

Examples

Run this code
# NOT RUN {
# success
test_if_dataframe(airquality)
#fail
my_test <- matrix(10)
test_if_dataframe(my_test)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace