working with shapefiles in r