This code calculates the mean of ShotOutcome without missing values, but counts the ShotOutcome with missing values included. I wanted to use na.rm = TRUE for ShotOutcome = n(), but it doesn't seem to work. Is there any way to drop missing values when counting the number of factors using group_by and summarise()?