So I'm trying to apply the summary command to a bunch of vectors and have like each one labeled with the zip code it belongs to in one output. I also one to have one is this possible? Also, I feel like there is a way to combine the first two steps but I'm not sure how. Thanks so much for the help!!!! Here's what I have so far:
data.06511 <- subset(x, ZipCode == 6511)
data.06513 <- subset(x, ZipCode == 6513)
data.06515 <- subset(x, ZipCode == 6515)
data.06516 <- subset(x, ZipCode == 6516)
data.06519 <- subset(x, ZipCode == 6519)
lackfood.06511 <- data.06511$lackFood12Months_Bin
lackfood.06513 <- data.06513$lackFood12Months_Bin
lackfood.06515 <- data.06515$lackFood12Months_Bin
lackfood.06516 <- data.06516$lackFood12Months_Bin
lackfood.06519 <- data.06519$lackFood12Months_Bin
lackfood.pop <- x$lackFood12Months_Bin