Useful R Code

CountryCode Package

When working with data at the country level, "countrycode" that can do a multitude of useful things: Standardize country names, convert them into one of eleven coding schemes, convert between coding schemes, and assign region descriptors. In our lab, we've used this package to easily merge multiple datasets by standardizing country names, which simplifies an otherwise tedious process! Find out more about the package at the link below: 

...

Read more about CountryCode Package

AnthroTools Package

Ben Purzycki, Joe's former post-doc who now works at the Max Planck Institute for Evolutionary Anthropology, has created a new R package for working with ethnographic data. It contains tools for doing doing multi-factor free-list analysis and cultural consensus analysis. For more info, check out the AnthroTools website.

To install AnthroTools, open R and run the following code:

install.packages("devtools")
library("devtools...
Read more about AnthroTools Package