powered by
Whether a data frame or list has factors
has_factors(x)
an R object
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