We can arrive more directly at the summary value for the column using the summarize function. The function takes a data frame and a singular calculated result. We can see the same result using the script as follows:
summarize(pct, mean(hitpct, na.rm = TRUE))