readDBF: read dbf file

Description Usage Arguments References See Also Examples

View source: R/dbf.R

Description

The function reads a DBF file into a data frame, converting character fields to factors, and trying to respect NULL fields. The DBF format is documented but not much adhered to. There is is no guarantee this will read all DBF files.

Usage

1
read.dbf(file, as.is = FALSE)

Arguments

file

name of input file

as.is

should character vectors not be converted to factors?

References

urlhttp://shapelib.maptools.org/. The Borland file specification via http://www.wotsit.org, currently at http://www.wotsit.org/list.asp?fc=6.

See Also

write.dbf

Examples

1
2
3
 x <- read.dbf(system.file("files/sids.dbf", package="foreign")[1])
 str(x)
 summary(x)

kongdd/floodmap documentation built on May 20, 2019, 12:55 p.m.