Error code with cut function

Sorry if I'm posting this in the wrong space. It's my first post. I keep getting the error code "Error: unexpected ',' in" even though my code looks fine to me. I'm probably missing something as I'm new to R

GINCTOT <- cut(data1$INCTOT, breaks=(0, 213300, 46153, 138460, 200000, Inf), labels=c("Poverty", "Low Income", "Middle Class", "High Income", "1%"))

I'm using income data from IPUMS CPS and am trying to break up the data. Any help I can get is appreciated

never mind I figured it out

If your problem is solved (even by you), will you please mark this thread as solved?

In case you don't know how, here's a helpful post:

1 Like

Could you please edit your answer to include the actual solution to your problem (or the correct code used) this would be useful to others facing the same issue.

This topic was automatically closed 7 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.