Who's on duty now?

staff_on_duty(staffing, shifts)

Arguments

staffing

Staff schedule (ungrouped)

shifts

What shifts are we interested in (not times)

Value

A nested dataframe, sorted by shift with two cols: `shift`, `staff`. Each row of `staff` contains a char vector of the staff on duty then. If no staff are on duty, staff is `list(NA)`.