I have a straight forward chunk of code:
f.fullattendee <- read_excel("Full Attendee List.xlsx") %>%
mutate(start_time = ymd_hms(starttime),
end_time = ymd_hms(endtime))
f.uniqatt <- f.fullattendee %>%
group_by(fullname) %>%
summarize(minStart = min(start_time),
maxEnd = max(end_time)) %>%
mutate(durationMin = round((maxEnd - minStart)/60, digits=2))
When running it (using tidyverse 1.3.0 and NOT running plyr), f.uniqatt contained a single record instead of the number of unique names (474 in my data).
This behavior persisted through multiple attempts until I quit and then restarted the R-studio session. After the restart, this code worked properly.
This is less of a question and more of a package stability issue. Why wouldn't this very basic tidyverse code work without a restart?
Sorry for the rant.
AB