alemadi

Untitled

Nov 5th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.43 KB | None | 0 0
  1. # Get first names in a seperate col
  2. az$first_name <- str_split_fixed(az$contbr_nm, ", ", 2)[,2]
  3.  
  4. # Use gender function
  5. t3 <- gender(as.character(az$first_name), c(1932, 1998),
  6. method = 'ssa',
  7. countries= "United States")
  8.  
  9. # Assign gender to contributers
  10. az$contb_gender <- t3$gender
  11.  
  12. # Error message
  13. '''Error in `$<-.data.frame`(`*tmp*`, contb_gen, value = c("male", "male", : replacement has 120187 rows, data has 147703'''
Advertisement
Add Comment
Please, Sign In to add comment