Closed ahhurlbert closed 7 years ago
replace "California " and "Virginia " with "California" and "Virginia"
can do this here (and for other text fields as well) using the trimws() function in R for trimming white space.
E.g.
diet$Location_Region = trimws(diet$Location_Region)
done
replace "California " and "Virginia " with "California" and "Virginia"
can do this here (and for other text fields as well) using the trimws() function in R for trimming white space.
E.g.
diet$Location_Region = trimws(diet$Location_Region)