production_scripts/HRI-LTC/add_ltc_groups.R

add_ltc_groups <- function(ltc_variable){
  
    case_when(
      ltc_variable == 0  ~ "0",
      ltc_variable == 1  ~ "1",
      ltc_variable == 2  ~ "2",
      ltc_variable == 3  ~ "3",
      ltc_variable == 4  ~ "4",
      ltc_variable > 4  ~ "5+"
    )
  
}
shintoLamp/bluenile documentation built on Aug. 6, 2022, 6:29 a.m.