force_categorical: force_categorical

Description Usage Arguments Value Author(s) See Also Examples

Description

changes variables to be labeled as categorical

Usage

1
force_categorical(variables, columns)

Arguments

variables

a tibble generated by identify_variables

columns

the columns to update

Value

the updated tibble

Author(s)

Mark Newman, mark@trinetteandmark.com

See Also

Other utilities: adjust_grid_for_regression, apply_lag, identify_variables

Examples

1
2
3
4
5
6
  
  data.frame(
    a = 1:10,
    b = 1:10) %>%
    identify_variables() %>%
    force_categorical("b")

markanewman/mndredge documentation built on May 9, 2019, 5:52 a.m.