check_set_by function

Check if the by arguments are valid, makes them into a data.frame if they are a list. Internal function.