New R user looking to assign the FIPS code to the counties within a dataset. I have multiple point data with a county name attached to the information, and I want to assign the appropriate FIPS code to all counties within the dataset.
Data example:
State StateFIPS County
DE 10 Sussex
DE 10 Sussex
DE 10 Kent
DE 10 Sussex
I have been able to attach the FIPS by state using:
DEdata$StateFIPS <- fips(DEdata$State)
But I am unable to use this fips function for the County level. Is there anyway to assign the FIPS code for multiple counties within the state?