I have zip code in my existing data frame of 18 variables and 65k observations and just downloaded library(zipcode). I can't figure out how to create two new columns with city and state (I would be ok with just "state" as well) and add to the existing data frame. In "Help" it reads that it is it's own data frame. Any ideas on how I can get the information I need? Under "Usage" in "Help" it reads, "data(zipcode", is that the name of the df that I should use?
UPDATE: I tried to merge and received the below error
data("zipcode")
APSIVMerged3 <- merge(APSIVMerged2,zipcode)
Error: cannot allocate vector of size 10.7 Gb
Update2: I also dropped columns latitude, longitude, and city since I only really need "state" and I still get the same error return message. I also tried:
gc()
to clear memory bc a different forum recommended someone try that. It did not help.