#RStats for Political Science

From loop to purrr

The first instinct for many R users (especially those coming from other programming languages) is to use run of the mill for loop: This works fine. It loops through country_1 to country_8, checks if each column exists, and converts the country names into COW codes. Buuut there’s another way to do this. Enter purrr and…

Something went wrong. Please refresh the page and/or try again.


Follow My Blog

Get new content delivered directly to your inbox.