Unexpected symbol on my project on Rstudio

hii, I'm new to RStudio and I want to ask. Why "unexpected symbol" appeared when I try to run this formula:

goals_cat <- cut(goals, breaks=c(0,15,30,45,60,75,90,96),
labels=c(15,30,45,60,75,90,96))
plot.ecdf(as.numeric(as.character(goals_cat))

Help me, please :slight_smile: Thanks before.

It looks like you have a missing closing parenthesis ) at the end of your plot line

1 Like

These errors mean that the R code you are trying to run or source is not syntactically correct. That is, you have a typo.

To fix the problem, read the error message carefully. The code provided in the error message shows where R thinks that the problem is. Find that line in your original code, and look for the typo.

1 Like

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