title: Convert the factor format of the data in the data into characters in R
body: <p>Convert the factor format of the data into characters and numeric in R but something wrong there. Please help me to fix it.</p>
  <p><img src="https://i.stack.imgur.com/XvSOc.jpg" alt="enter image description here" /></p>
  <pre><code>data &lt;-read.csv2('winequality-white.csv',header = T)
  View(data)
  
  head(data)
  class(data)
  data[,1:11]&lt;-lapply(df[,1:11],as.character)
  data[,1:11]&lt;-lapply(df[,1:11],as.numeric)
  </code></pre>