I have a SpatialPolygonsDataFrame with 14 different polygons. Each polygon currently has an attribute column "id", which is a single string that identifies the original colony, year, and season the polygon represents (e.g. "COL1_2010_Winter").
I want to now add 3 more attribute columns to my spdf object, "colony", "year, and "season", and populate each row with the info taken from "id". Is this possible?
The ultimate goal is to plot the polygons by year and colony, with different colors for winter and summer.
dput(spdf_object)