title: how to solve this error: object of type 'builtin' is not subsettable
body: <p><a href="https://i.stack.imgur.com/5azsG.png" rel="nofollow noreferrer">This is part of my dataset</a> I want to find range, mean and sd for all variables in my dataset. I used the for loop in the picture but shows the error like object of type 'builtin' is not subsettable. Does anyone know how to solve this problem?</p>
  <pre><code>&gt; mean &lt;- c() range &lt;- c() sd &lt;- c()
  &gt; 
  &gt; dyad.all_subset &lt;- subset(dyad.all, select=c(BAA,BAF,`Data
  &gt; Science`,`Life Science`,Engineer,`Previous Raised`,`Max
  &gt; Raise`,Age,`Patent Numbers`,Patent,`Committed Amount ($K)`))
  &gt; dyad.all_subset$BAA &lt;- as.numeric(dyad.all_subset$BAA)
  &gt; dyad.all_subset$BAF &lt;- as.numeric(dyad.all_subset$BAF)
  &gt; dyad.all_subset$`Data Science` &lt;- as.numeric(dyad.all_subset$`Data
  &gt; Science`) dyad.all_subset$`Life Science` &lt;-
  &gt; as.numeric(dyad.all_subset$`Life Science`) dyad.all_subset$Engineer &lt;-
  &gt; as.numeric(dyad.all_subset$Engineer) dyad.all_subset$`Previous Raised`
  &gt; &lt;- as.numeric(dyad.all_subset$`Previous Raised`) dyad.all_subset$`Max
  &gt; Raise` &lt;- as.numeric(dyad.all_subset$`Max Raise`) dyad.all_subset$Age
  &gt; &lt;- as.numeric(dyad.all_subset$Age) dyad.all_subset$`Patent Numbers` &lt;-
  &gt; as.numeric(dyad.all_subset$`Patent Numbers`) dyad.all_subset$Patent &lt;-
  &gt; as.numeric(dyad.all_subset$Patent) dyad.all_subset$`Committed Amount
  &gt; ($K)` &lt;- as.numeric(dyad.all_subset$`Committed Amount ($K)`)
  &gt; 
  &gt; 
  &gt; 
  &gt; 
  &gt; 
  &gt; for(i in 1:nrow(dyad.all_subset)){   range[i] &lt;-
  &gt; range(dyad.all_subset[[i]],na.rm=T)   mean[i] &lt;-
  &gt; mean(dyad.all_subset[[i]], na.rm=T)   sd[i] &lt;-
  &gt; sd(dyad.all_subset[[i]],na.rm=T) }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/hxPUk.png" alt="This is my code and error" /></p>