I like to write a function that uses dplyr and can handle both data and env variables. The reprex code below works fine for data variables, see result1. But it does not work