restData$zipGroups = cut(restData$zipCode,breaks=quantile(restData$zipCode))
table(restData$zipGroups)
(-2.123e+04,2.12e+04] (2.12e+04,2.122e+04] (2.122e+04,2.123e+04] (2.123e+04,2.129e+04]
337 375 282 332
table(restData$zipGroups,restData$zipCode)
-21226 21201 21202 21205 21206 21207 21208 21209 21210 21211 21212 21213
(-2.123e+04,2.12e+04] 0 136 201 0 0 0 0 0 0 0 0 0
(2.12e+04,2.122e+04] 0 0 0 27 30 4 1 8 23 41 28 31
(2.122e+04,2.123e+04] 0 0 0 0 0 0 0 0 0 0 0 0
(2.123e+04,2.129e+04] 0 0 0 0 0 0 0 0 0 0 0 0
21214 21215 21216 21217 21218 21220 21222 21223 21224 21225 21226 21227
(-2.123e+04,2.12e+04] 0 0 0 0 0 0 0 0 0 0 0 0
(2.12e+04,2.122e+04] 17 54 10 32 69 0 0 0 0 0 0 0
(2.122e+04,2.123e+04] 0 0 0 0 0 1 7 56 199 19 0 0
(2.123e+04,2.129e+04] 0 0 0 0 0 0 0 0 0 0 18 4
21229 21230 21231 21234 21237 21239 21251 21287
(-2.123e+04,2.12e+04] 0 0 0 0 0 0 0 0
(2.12e+04,2.122e+04] 0 0 0 0 0 0 0 0
(2.122e+04,2.123e+04] 0 0 0 0 0 0 0 0
(2.123e+04,2.129e+04] 13 156 127 7 1 3 2 1