sp2df function

Transforms a shapefile into a dataframe