Skip to content

zip_hyphen #127

@lorenc5

Description

@lorenc5

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions