Error with summarise

Error: unexpected ')' in "t3=summarise(t3,ndays=()"

i have tried again and again to find a slolution with the () but Rstudio always replies with Error: unexpected ')' in "t3=summarise(t3,ndays=()"

do you mean summarise(t3, ndays = n() ) ?

Yes that is what I mean. Before you say that the solution is just to add another ), think again I have tried 50 times it always replies Error: unexpected ')' in "t3=summarise(t3,ndays=()" I believe the problem lies with the last 2 )). Thanks for the quick reply.

Sorry for taking your time I just found the solution I only had to leave a space between the parentheses in ndays() ). Thank you for your time.

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.