Hello guys and gals. I am a student and new to R. I have this data set. I have to tidy it up with tidy verse and then calculate the mean height for each species that has at least 10 measurements.
Hey William thank you for your reply! Can you elaborate a little on your reply?
I know how many species I got but some of them have less that 10 height measurements..
Ohh I did not realised that your posted the code. If you have time can you elaborate on the differences between the two codes? Yours look a lot cleaner
Yours is pretty much the same as my first one, except that I have used summarise() instead of summarise_at(), but this is because there is only one variable. Also check out dplyr::across() if using more than one.
The second bit of code, just moves the count in to the summarise, just to show it. It might be a tiny bit slower if you had a really large dataset.