title: R Convert list to lowercase
body: <p>Var1 is a list:</p>
  
  <pre><code>var1 &lt;- list(c("Parts of a Day", "Time in Astronomy", "Star"),  c("Tree Tall", "Pine Tree"))
  </code></pre>
  
  <p>How to convert all the characters to lowercase? The desired answer is the following list:</p>
  
  <pre><code>var1 &lt;- list(c("parts of a day", "time in astronomy", "star"),  c("tree tall", "pine tree"))
  </code></pre>
  
  <p>I used </p>
  
  <pre><code>as.list(tolower(var1))
  </code></pre>
  
  <p>But it gives the following answer with unwanted \</p>
  
  <pre><code>[[1]]
  [1] "c(\"parts of a day\", \"time in astronomy\", \"star\")"
  
  [[2]]
  [1] "c(\"tree tall\", \"pine tree\")"
  </code></pre>
  
  <p>Thanks.</p>