addSpatialData {DATRAS}R Documentation

Add spatial data from shapefile.

Description

Add spatial data from a shapefile to a DATRASraw object. Longitude-latitude coordinates from DATRASraw are used to lookup the information in the shapefile. Requires the package maptools.

Usage

  addSpatialData(d, shape, select = NULL, ...)

Arguments

d

DATRASraw object

shape

Shapefile or valid filename of existing shapefile.

select

Vector of variable names to select from shapefile (default is to select all names)

...

Passed to readShapeSpatial

Value

Modified DATRASraw object


[Package DATRAS version 1.0 Index]