-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Describe the bug
Returns error, e.g.,
: Error in $<-.data.frame(*tmp*, zipcode, value = c(NA, NA, NA, NA, :
replacement has 23611 rows, data has 23877
The issue is this line:
voter_file$zipcode[match(zip9_df$voter_id, voter_file[[voter_id]])] <- zip9_df$new_zipcode
Should work when changed to:
voter_file[,zipcode][match(zip9_df$voter_id, voter_file[[voter_id]])] <- zip9_df$new_zipcode
Metadata
Metadata
Assignees
Labels
No labels