A function takes inputs, called arguments, inside brackets and gives back a result: sum(sales), mean(sales), max(sales). Some take more than one argument. round(x, 1) rounds to one decimal place. You can name arguments, round(x, digits = 1), which makes long calls easier to read. Type ?mean in the console to open a function's help.
Summaries return NA when any value is missing, on purpose: R won't quietly drop data. Add na.rm = TRUE to leave the missing values out, and only when that is what you mean.
Functions nest, so round(mean(x), 1) takes the mean first and rounds it after. Two small tricks come up all the time: sum() of a TRUE and FALSE vector counts the TRUEs, and mean() of one gives the share that are TRUE.
The first mean is NA because one wait is missing; na.rm = TRUE leaves it out, and round() tidies the result.