title: How do I select columns based on their type in R?
body: <p>I have a data.frame in R with many columns (over 50+). The column types are integer, factor, and character. Is there a fast way to only select all the character columns for my dataframe?</p>
  
  <p>I tried something like below but it didn't work.  :/</p>
  
  <p>Example: new_dataset &lt;- class(old_dataset) %in% c("character")  #only select characters</p>