title: How do I rename an R object?
body: <p>I'm using the quantmod package to import financial series data from Yahoo.</p>
  
  <pre><code>library(quantmod)
  getSymbols("^GSPC")
  [1] "GSPC"
  </code></pre>
  
  <p>I'd like to change the name of object "GSPC" to "SPX". I've tried the rename function in the reshape package, but it only changes the variable names. The "GSPC" object has vectors GSPC.Open, GSPC.High, etc. I'd like my renaming of "GSPC" to "SPX" to also change GSPC.Open to SPX.Open and so on.</p>