Error in get(as.character(FUN), mode = "function", envir = envir) : object '.' of mode 'function' was not found

I am trying to find the sum of totalsteps based on hourlydate and id..
i wrote the code as:
new_project %>%
Filter(Id=="1503960366") %>%
sum(StepTotal) %>%

But i keep getting an error, why?

Without a reproducible example, I can only guess what your problem is based on your syntax errors, my best guess is that you are actually trying to do this

new_project %>%
    filter(Id == "1503960366") %>%
    group_by(ActivityHour) %>% 
    summarise(StepTotal = sum(StepTotal))

If this doesn't solve your problem and you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

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.