1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#> Reoder factor levels
mutate(x = stats::reorder(., x, FUN = mean))
arrange(desc(z), y) %>% mutate(x = factor(x, levels = unique(x)))
#> Reorder columns
relocate()
#> Become one or two columns in a vector
dplyr::pull() # using select or select 2 cols
tibble::deframe()
#> Recode columns values
mutate(x = case_when( conditions! ))
#> Drop if all colum have NA's
select(where( ~!all(is.na(.))))
|