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

Data without state FIPS code #1

Open
phuang5 opened this issue Feb 3, 2023 · 0 comments
Open

Data without state FIPS code #1

phuang5 opened this issue Feb 3, 2023 · 0 comments

Comments

@phuang5
Copy link

phuang5 commented Feb 3, 2023

Hi Matt,
Thanks for posting this useful data! I notice that in the processed data, there are rows whose origin/destination have three digits, without their state FIPS codes. A quick eyeballing suggests that those rows typically only have nonzero entries for the year of 1998. Do you have an idea about what those counties may be?
Here is a short script to extract those rows:

irs <- read.table("IRS-migration-data/DATA-PROCESSED/county_migration_data.txt",
                    header = T)
no.state.fips <-  floor(irs$origin/1e3)==0 | floor(irs$destination/1e3)==0
table(no.state.fips)
head(irs[no.state.fips,])
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