Entering edit mode
5.0 years ago
veronico
▴
70
Hi everyone,
Does anyone know how to fix this: I am using the following code to create certain groupings, but doing so changes my row names to numbers. Is there a way to avoid this, please?
table5[] <- death%>% mutate(Group = case_when(
Mean > 0 ~ "1",
Mean < 0 & Mean > -1 ~ "2",
Mean < -1 & Mean > -1.5 ~ "3",
Mean < -1.5 ~ "4"))
Thank you!
Thank you so much! This was super helpful!
If this answers you question then consider accepting as an answer.