Unexpected Token

I have a problem with mutate.
I've tried to code, but it gives me an unexpected token error, and I'm so stuck because I'm new to Rm.
Here is the code, if anyone can help me fix it, it will help me a lot:

linelist_cleaned <- linelist_cleaned %>%
mutate(time_to_death = factor(
levels = c("0-4 hours",
">4-24 hours",
">24-48 hours",
">48 hours"))

Looks like you have 3 open parens and only 2 close parens.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.