I'm working on a function which dynamically groups by and summarises according to a given set of groups, variables to be summarised, and the functions used to summarise them. All of this can be done via function arguments. However, some functions also have optional parameters (for example na.rm = TRUE|FALSE). Setting the parameter to TRUE or FALSE is trivial, but I would also like to be able to specify that the parameter I want to make use of is "na.rm =".