Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populations in states data are misaligned #32

Open
ramhiser opened this issue Dec 20, 2014 · 1 comment
Open

Populations in states data are misaligned #32

ramhiser opened this issue Dec 20, 2014 · 1 comment
Assignees

Comments

@ramhiser
Copy link
Owner

Quote from an email from Dan Irons:

In the “states” dataset, state populations appear to have been misassigned. For example, the populations of Alaska and Alabama have been transposed, likewise the populations of Arkansas and Alabama, and so on with each pair of states on down the list (although I haven’t checked every row). I haven’t looked at the package source to determine where the errors are introduced, and of course it is entirely possible that the errors were inherited from the data sources that you took the data from.

@ramhiser ramhiser self-assigned this Dec 20, 2014
@ramhiser
Copy link
Owner Author

It turns out Dan was right. I was using base::merge to join some manually defined state information with the populations obtained from the US Census Bureau. The join was flawed. Using some dplyr::inner_join magic, the populations appear to be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant