Dennis
November 19, 2020, 8:13am
1
tl=filter(climate_full,as.numeric(Year)>1959)
t2=arrange(tl,desc(AirTemp_Mean))
t2=t2[1:100,]
t3=group_by(t2,Year)
t3=summarise(t3,ndays=())
Error: unexpected ')' in "t3=summarise(t3,ndays=()"
qplot(data=t2,x=Year,y=ndays,geom="point")
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() ) ?
Dennis
November 19, 2020, 8:26am
3
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.
Dennis
November 19, 2020, 8:34am
4
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.
system
Closed
December 10, 2020, 8:34am
5
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.