maptools (version 0.4-7)

dbf.read: 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.

References

http://shapelib.maptools.org/

See Also

read.shape

Examples

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

Run the code above in your browser using DataCamp Workspace