I am working on a school project and have a data set of 4,000 rows. There are 40 participants and each has about 100 rows. I want to create a data set that collapse the rows for each participant into summary statsitics, ideally the 90th percentile. I know how to find the mean values with dplyr:
Means <- bladder %>%
group_by(id, group) %>%
summarise(across(everything(), list(mean)))
And this works great. But is there somehow I could do the same thing but instead list the 90th percentiles instead of means?
Thank you!!