title: Cannot load .rda
body: <p>I'm having trouble loading a data frame in R. </p>
  
  <pre><code>var1 = c('blue','red','green')
  var2 = c(101,102,103)
  df = data.frame(var1,var2)
  print(df)
  
     var1  var2
  1  blue   101
  2  red    102
  3  green  103
  
  save(df, file = "mydata.rda")
  </code></pre>
  
  <p>when I try to load <code>mydata</code> with <code>load()</code> it returns the name of the dataframe ("df") instead of the actual data. I don't think there's a problem with the .rda file because I can manually load it in using R's point-and-click functions (i.e. File > Open File), but I can't load it in-line:</p>
  
  <pre><code>a = load("mydata.rda")
  a
  [1] "df"
  </code></pre>
  
  <p>Am I doing something wrong? </p>