[R] R does not subset

John Field JohnField at ozemail.com.au
Tue May 7 10:20:47 CEST 2013


This typically occurs because of sloppy manual data entry outside of R. To
relieve further analysis pain, you can manually clean the data (usually only
effective for one-time analyses) or use R to fix problems right after
loading the data (there are multiple methods for doing this... I prefer
using ?sub on character data before creating the factor).
<endquote>


str_trim in package stringr is great for this.
John







--
View this message in context: http://r.789695.n4.nabble.com/R-does-not-subset-tp4666129p4666453.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list