sr: an object of class SpatialPolygons or SpatialPolygonsDataFrame.
srdf: an object of class SpatialPolygonsDataFrame.
Details
We describe here more in detail the functions spol2area and attpol2area. Objects of class area do not deal with holes in the polygons, whereas the objects of class SpatialPolygons do. Therefore, when holes are present in the SpatialPolygons object passed as argument, the function spol2area ignore them and returns only the external contour of the polygon (though a warning is returned).