From 60dda21029ca1f5106f089379432f642af34cc76 Mon Sep 17 00:00:00 2001 From: Alexander Rossell Hayes Date: Wed, 15 Nov 2023 13:15:45 -0800 Subject: [PATCH] fix(voters): use tract NY-061-014900 instead of 015100 --- .Rbuildignore | 1 + data-raw/voters.R | 19 +++++++++++++++++++ data/voters.RData | Bin 687 -> 0 bytes data/voters.rda | Bin 0 -> 606 bytes 4 files changed, 20 insertions(+) create mode 100644 data-raw/voters.R delete mode 100644 data/voters.RData create mode 100644 data/voters.rda diff --git a/.Rbuildignore b/.Rbuildignore index af6362a..0d1dd30 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -12,3 +12,4 @@ ChangeLog ^cran-comments\.md$ ^CRAN-SUBMISSION$ +^data-raw$ diff --git a/data-raw/voters.R b/data-raw/voters.R new file mode 100644 index 0000000..a224447 --- /dev/null +++ b/data-raw/voters.R @@ -0,0 +1,19 @@ +voters <- data.frame( + VoterID = as.character(1:10), + surname = c("Khanna", "Imai", "Rivera", "Fifield", "Zhou", "Ratkovic", "Johnson", "Lopez", "Wantchekon", "Morse"), + state = c("NJ", "NJ", "NY", "NJ", "NJ", "NJ", "NY", "NJ", "NJ", "DC"), + CD = c("12", "12", "12", "12", "12", "12", "9", "12", "12", "0"), + county = c("021", "021", "061", "021", "021", "021", "061", "021", "021", "001"), + tract = c("004000", "004501", "004800", "004501", "004501", "004000", "014900", "004501", "004501", "001301"), + block = c("3001", "1025", "6001", "1025", "1025", "1025", "4000", "1025", "1025", "3005"), + precinct = c("6", "", "", "", "", "", "", "", "", ""), + age = c(29, 40, 33, 27, 28, 35, 25, 33, 50, 29), + sex = c(0, 0, 0, 0, 1, 0, 0, 0, 0, 1), + party = c("Ind", "Dem", "Rep", "Dem", "Dem", "Ind", "Dem", "Rep", "Rep", "Rep"), + PID = c("0", "1", "2", "1", "1", "0", "1", "2", "2", "2"), + place = c("74000", "60900", "51000", "60900", "60900", "60900", "51000", "60900", "60900", "50000"), + last = c("Khanna", "Imai", "Rivera", "Fifield", "Zhou", "Ratkovic", "Johnson", "Lopez", "Wantchekon", "Morse"), + first = c("Kabir", "Kosuke", "Carlos", "Ben", "Yang-Yang", "Marc", "Frank", "Gabriel", "Leonard", "Julia") +) + +usethis::use_data(voters, overwrite = TRUE) diff --git a/data/voters.RData b/data/voters.RData deleted file mode 100644 index ffe9973ec404c66ce7006c039936b3c3b49ee678..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 687 zcmV;g0#N-QiwFP!000001I<=jZ`v>vc5W>oZLPH5(JFyLLEAJo5EHbWCbUbtHa_v|?7)YvGJpzz6982JH2|jo>Hr$K#9kQV1oCP%LmZ}z3v`!Lw0Abblw!r)?gU3L z(vRkZ!^nOo8b&0(2FGtBHdDCJ$LW~OqYzwsY(x`ALC`syl3$9HzG9k&BQnm0FBngV zvD>yX$G~}Rtrl%B)M^~q)^-cfhn_}PD{lw9AKaCD`SZ3-e#_VQx175{J7#~%>K)$? zG%RPZ7VInm%H1(idj`)-@F1d)P|+#`JMn$rVAZv;x-k}11HpFHX(?TnVXlFlM|8S@ zUxw4=RuvwWB2u94VCw#M@%;=*II>SxvI$+M$L&2MDnbXmmPRM8>&58n!Fs=PBih`5%> zlG&I5YhfO<1j^tYfk4G8OmB|l1vFk@4w}3U$8-z=-{S!nivfC07{wfx=JjTAg!AuO ziYEl#wFfZqi~Nr0wt*%yF5O^ClHwGI-2$(@kj-fN6P!{m?hKGY%t8=Zm~s+ER1Z4% z27);W`2ka=nCoE9N3F%1#yA9jS9~Yv9K(nUvc9?^XWx%ug|cStTX9(|7JnY8r_wb} V@$rz$)vjvl?k@-Qr>=kr007V#Qa1nq diff --git a/data/voters.rda b/data/voters.rda new file mode 100644 index 0000000000000000000000000000000000000000..bfa686b2fb1376c9593c4265df33aa94d97b789e GIT binary patch literal 606 zcmV-k0-^mvT4*^jL0KkKS?Dwwf589q$OI4rfA0OiQSd+S-|#>HK>@%5JY-9_ z=t`%mpQ2AEr8GT~YGt91fevIO%oGpG8zB|KmZK@13=IksP!5H zMwtK_Vl>bi02*X4CWeMUNfH{Tq}q&wA)wQ088QF>00w|)oDa3Be)g@(V&9rMZ$Md~ z2#E}(bPgs+&36G-Utb-_8%J%Rg*qxPa(JFD#q{(das!uuu-cHy; zjip>y>RGQPN~o&vKCqM2uzXlPb*B3xUmFnD0+s;>2#|q*5W%+SN)U8~APkTsk9GjI z#~fV)vQEXS_^i*I!+=tT8Jk(v(ou_e_iu8bVk%TLB}yWK2PPAh5mOa zN(zZg5J*IJYt93!$V`gpDFSv9BpF||hY}DB7$R2FR2nH~Iqg430=^iBQIgTacPN;` zl*CG@+?9%mCgSZJB1XEcQ10Yd&4d^fTPx&7Nc}%J~?Ls6gWjH z)Z1cP$0ZIWVxF$qOMuQL(7OeKdMf^iuS5{RT) zgP_+9kW$E)*r$w+0m2JzLujy6alle@-6>Woyi~oK sO$DRW%MYm4Xkvbv)6KK{SiGBAh5lbQ%;lfaZq-!T