dbf.read {maptools}R Documentation

Read DBF a file

Description

The function reads a DBF file into a data frame, converting character fields to factors, and trying to respect NULL fields.

Usage

dbf.read(filen)

Arguments

filen name of input file

Value

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.

Note

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.

Author(s)

Nicholas Lewin-Koh and Roger Bivand; shapelib by Frank Warmerdam

References

http://shapelib.maptools.org/

See Also

read.shape

Examples

x <- dbf.read(system.file("shapes/sids.dbf", package="maptools")[1])
str(x)
summary(x)

[Package Contents]