Skip to content

Commit

Permalink
Add download instruction for CFPS family roster data
Browse files Browse the repository at this point in the history
  • Loading branch information
yanwenwang24 committed Nov 20, 2024
1 parent f7a6583 commit 20a6bd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 01_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ source("functions.R")

# Import data
load("Datasets/seq_marital_1540.RData")

# Download and import this file from the official CFPS website
cfps2018_familyroster <- read_stata("Datasets/cfps2018_familyroster.dta") %>%
mutate_all(funs(replace(., . < 0, NA)))

0 comments on commit 20a6bd4

Please sign in to comment.