summarise() turns a whole table into one row: orders |> summarise(n_orders = n(), units = sum(units)). Each argument is name = summary, so you choose the column names of the result.
n() counts rows. The usual summaries work on any column: sum(), mean(), median(), min(), max(), sd() and n_distinct() for the number of different values. The same rules as before apply: na.rm = TRUE when a column has gaps, sum() of a logical column counts the TRUEs and mean() of one gives a share.
A summary can use a calculation across columns, such as sum(hours * hourly_rate), which multiplies row by row and then adds.
One row with three named summaries.