Ordered factor column maker
ord_maker.Rd
Ordered factor column maker
Examples
ord_maker(size = 5, lvls = 6, missing = TRUE)
#> [1] level 1 level 2 level 3 level 4 level 5
#> Levels: level 1 < level 2 < level 3 < level 4 < level 5
ord_maker(size = 10, lvls = 5, missing = FALSE)
#> [1] level 1 level 2 level 3 level 4 level 5 level 1 level 2 level 3 level 4
#> [10] level 5
#> Levels: level 1 < level 2 < level 3 < level 4 < level 5
ord_maker(size = 10, missing = FALSE)
#> [1] level 1 level 2 level 3 level 4 level 5 level 1 level 2 level 3 level 4
#> [10] level 5
#> Levels: level 1 < level 2 < level 3 < level 4 < level 5
ord_maker(size = 10, lvls = 5, missing = TRUE)
#> [1] level 1 level 2 level 3 level 4 level 5 <NA> level 1 level 2 level 3
#> [10] level 4
#> Levels: level 1 < level 2 < level 3 < level 4 < level 5
ord_maker(size = 10, lvls = 5, missing = FALSE)
#> [1] level 1 level 2 level 3 level 4 level 5 level 1 level 2 level 3 level 4
#> [10] level 5
#> Levels: level 1 < level 2 < level 3 < level 4 < level 5