tester (version 0.1.7)

has_factors: Has factors?

Description

Whether a data frame or list has factors

Usage

has_factors(x)

Arguments

x

an R object

Examples

Run this code
has_factors(iris) # TRUE
has_factors(iris[,1:4]) # FALSE
has_factors(list(iris$Species, 1:150)) # TRUE

Run the code above in your browser using DataCamp Workspace