title: How can I pass a vector as variable arguments into a function in R
body: <p>I am not sure if what i am trying to do makes sense in R.</p>
  
  <p>I want to do the something like follow:</p>
  
  <pre><code>fun &lt;- function(df, args){
      .....
      df %&gt;%
      group_by(args)
      .....
  </code></pre>
  
  <p>I am trying to pass a char vector as args, then group by the args as column name, but it does not work.</p>
  
  <p>i have tried <em>get</em> and <em>mget</em>, they do not work the way i want.</p>