I keep getting a return of NA. Chat GPT is telling me that since I used filter I NEED to use the summary function and then nest mean inside of it. I don't quite understand what the summary function does or why I need to use it after filtering in a pipe like this?
Can anyone provide me any insight into what exactly it is that my code is doing and why it is doing that? Furthermore can anyone explain when and why to use summary?
the pipe is passing the output of filter() to summarize(). That tibble is used as the source of data in the calculation of Avg, so you can just use the bare column name wingspan and you don't have to write birdData$wingspaninside of summarize().