read.shape(filen, dbf.data = TRUE) dbf.read(filen) getinfo.shape(filen)
plot.Map
x <- read.shape(system.file("shapes/sids.shp", package="maptools")[1]) length(x$Shapes) unlist(lapply(x$att.data, class)) str(getinfo.shape(system.file("shapes/fylk-val.shp", package="maptools")[1]))
Run the code above in your browser using DataLab