Never really liked the old-style anonymous functions using ~ and . and .x. New style makes much more sense to me. #rstats
replace specific character with na
fecking bracket placement important
1. old style
mutate(across(site:fuel, ~ifelse(. == "[x]", NA, .)))
2. new style
mutate(across(site:fuel, (x) ifelse(x == "[x]", NA, x)))
and repeated using set_units on character column
d |> mutate(across(start:end, (x) x |> as.integer() |> set_units("Year")))