Closed markfairbanks closed 2 years ago
pacman::p_load(tidytable) df <- tidytable(x = c(1, NA, 3)) df %>% get_dummies.(x) #> # A tidytable: 3 × 4 #> x x_1 x_3 x_NA #> <dbl> <int> <int> <int> #> 1 1 1 0 NA #> 2 NA NA NA NA #> 3 3 0 1 NA