search for: serial_divided

Displaying 1 result from an estimated 1 matches for "serial_divided".

2020 Oct 30
3
Error: variable not found
...sploc_pernum_code = pernum*(sex==1) + sploc*(sex==2)) #### dividing serial by 1000, otherwise, the ultimate couple_id is too large, and it works in this dataset because the serials start at 1000 (I will have to check if this works for other datasets) ipumsi_00008_dta <- mutate(ipumsi_00008_dta, serial_divided = serial%/%1000) ##### creating unique union identifier ipumsi_00008_dta$union_id = paste0(ipumsi_00008_dta$country, ipumsi_00008_dta$year, ipumsi_00008_dta$serial_divided, ipumsi_00008_dta$sploc_pernum_code) ipumsi_00008_dta <- ipumsi_00008_dta %>% mutate(union_id_numeric = as.numeric(union_...