test_if_dataframe: Test if input is a data.frame

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Test if input is a data.frame

Usage

1

Arguments

x

object

Value

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

Examples

1
2
3
4
5
6
7
8
## Not run: 
# success
test_if_dataframe(airquality)
#fail
my_test <- matrix(10)
test_if_dataframe(my_test)

## End(Not run)

naniar documentation built on Sept. 10, 2018, 5:05 p.m.