Learn R Programming

spsurvey (version 3.4)

read.dbf: Read the Attribute (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

A 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. The data frame is assigned class "SurveyFrame".

Details

Function summary(), i.e., summary.SurveyFrame(), can be used to summarize the the frame for a survey design.

References

ESRI Shapefile Technical Description: http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

See Also

read.shape framesum

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  read.shape("my.dbffile")
  
# }

Run the code above in your browser using DataLab