Learn R Programming

tester (version 0.2.0)

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 DataLab