Learn R Programming

spsurvey (version 4.0.0)

read.dbf: Read the dbf File of an ESRI Shapefile

Description

This function reads either a single dbf file or multiple dbf files. For multiple dbf files, all of the dbf files must have the same variable names.

Usage

read.dbf(filename = NULL)

Arguments

filename

Name of the dbf file without any extension. If filename equals a dbf file name, then that dbf file is read. If filename equals NULL, then all of the dbf files in the working directory are read. The default is NULL.

Value

Data frame composed of either the contents of the single dbf file, when filename is provided, or the contents of the dbf file(s) in the working directory, when filename is NULL.

Other Functions Required

readDbfFile

C function to read a single dbf file or multiple dbf files