Tag: base R

  • Remove whitespace from strings in base R

    The problem: There are situations in R when a string character contains a white space (whitespace) that needs to be removed for further analysis. The situations below are the most common that I see in my work. (copy and paste from this webpage will not work. To follow the tutorial, use the RData file here:…

en_USEnglish