Learn R Programming

visdat (version 0.5.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 not a data.frame

Examples

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

Run the code above in your browser using DataLab