R does not subset
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.