hurlbertlab / dietdatabase

Creative Commons Zero v1.0 Universal
10 stars 9 forks source link

fixing capitalization in Habitat_type and other fields #38

Closed ahhurlbert closed 7 years ago

ahhurlbert commented 7 years ago

To make ALL letters in a text string lower case in R, use the function tolower like this:

diet$Habitat_type = tolower(diet$Habitat_type)

ahhurlbert commented 7 years ago

@pwinner1 Have we standardized capitalization in all of the necessary fields in the database? I think this issue was just a reminder to myself to do that, so if it's done you can go ahead and close the issue.

pwinner1 commented 7 years ago

I believe we have. I know I used this function on certain fields and made corrections to other fields where the text was not all lowercase, such as how we decided to standardize season with the first letter capitalized.