dbf.read {maptools} | R Documentation |
The function reads a DBF file into a data frame, converting character fields to factors, and trying to respect NULL fields.
dbf.read(filen)
filen |
name of input file |
a data frame of data from the DBF file; note that the field names are adjusted to use in R using make.names()
, and so will permit the underscore character from R release 1.9.0.
From maptools 0.4-7, this function is placed in the user-visible namespace on a trial basis, and reports of any malfunction should be sent to the package maintainer, Roger Bivand Roger.Bivand@nhh.no. It is likely that this function and its arguments will be changed.
Nicholas Lewin-Koh and Roger Bivand; shapelib by Frank Warmerdam
x <- dbf.read(system.file("shapes/sids.dbf", package="maptools")[1]) str(x) summary(x)