Maps each column to one of "numeric", "integer", "date",
"logical", "categorical", "text" or "other". Character columns are
split into "categorical" and "text" heuristically: long strings, or
high-cardinality columns where most values are unique, are treated as free
text; everything else is categorical.
Examples
infer_column_types(data.frame(a = 1:3, b = c("x", "y", "z"),
d = Sys.Date() + 0:2))
#> a b d
#> "integer" "categorical" "date"