Unexpected token error

Hi, my supervisor sent me some files in R and when I try and open them, I get the message saying unexpected error next to the r at the beginning of these scripts:

dplyr::summarise(meanMRT=as.numeric(mean(rt))/1000) %>% 
  dplyr::mutate(Subjecttype = ifelse(meanMRT>1.5, "badSubject", "goodSubject"))

anyone know why?  Thank you

See the FAQ: How to do a minimal reproducible example reprex for beginners. The data hasn't to be all the data or even real data—just enough to illustrate the problem. The object FlankCueDF or something with its structure is needed to help.

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.