Skip to content

Commit

Permalink
Update merge_surnames.R
Browse files Browse the repository at this point in the history
Made minor change to merge_surnames.R to prevent NOTE during R CMD check --as-cran
  • Loading branch information
kkprinceton authored Mar 4, 2017
1 parent 54663ca commit 6410174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/merge_surnames.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ merge_surnames <- function(voter.file, surname.year = 2010, clean.surname = T, i

## Census Surname List
if (surname.year == 2000) {
surnames2000$surname <- as.character(surnames2000$surname)
surnames <- surnames2000
} else {
surnames$surname <- as.character(surnames$surname)
}
surnames$surname <- as.character(surnames$surname)

p_eth <- c("p_whi", "p_bla", "p_his", "p_asi", "p_oth")

Expand Down

0 comments on commit 6410174

Please sign in to comment.