title: Change the data.frame's name in R
body: <p>I want to change my code's data.frame.s name. But i have problem to work it.</p>
  
  <pre><code>A&lt;-function(x){
  data.frame(max(x),min(x))
   }
  x&lt;-c(1,2,3,4,5,5,4,3,2,1)
  A(x)
  names(A(x))
  names(A(x))&lt;-c("max","min")
  </code></pre>
  
  <p>It always appear  Error in names(A(x)) &lt;- c("max", "min") : could not find function "A&lt;-" How could i change the A(x)'s names? </p>