title: Undefined columns selected when renaming columns
body: <p>I need to rename columns of a data frame, excluding the last column. This is how I do this:</p>
  
  <pre><code>data = as.data.frame(data )
  names(data ) &lt;- paste0('X', 1:(ncol(data )-1))
  </code></pre>
  
  <p>After executing this code I try to open the data frame <code>data</code>, and the following error message appears:</p>
  
  <pre><code>Error in View : undefined columns selected
  </code></pre>