Allow multiple functions to accept NA for grouping