factor_all: Mutate all character variables to factor with as_factor().

View source: R/utils_extra.R

factor_allR Documentation

Mutate all character variables to factor with as_factor().

Description

Mutate all character variables to factor with as_factor().

Usage

factor_all(.data)

Arguments

.data

Examples

df <- data.frame(a = c("a", "b"), b = c(1,2))
df <- factor_all(df)
str(df)


pttry/pttdatahaku documentation built on Jan. 25, 2025, 10:37 a.m.