rstudio error unexpected '}' in " }"

Hi, I am trying to do this in RStudio but it keeps telling me that there is an error: unexpected ' } ' in " } " . I checked all the parenthesis for any mistake but I believe they are well used. I am new to R so any help is welcome.

I would guess the problem is barplot(dat, [ , input$region), but it's hard to me to confirm this without data to test against.

Did you, perhaps, intend to write barplot(dat[, input$region)?

Thanks a lot. I solved it thanks to you!!!

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.