title: Indexing using $ and arguments?
body: <p>I am very new to R and trying to figure out how to use indexing with $. If I wanted to add an argument, say drop(), how do I use $ with arguments? I tried:</p>
  
  <pre><code>subset &lt;- mydata_df$variable1[drop=FALSE]
  </code></pre>
  
  <p>This doesn't seem to work.</p>