Learn R Programming

briskaR (version 1.0.4)

loadLandscapeSIG: Create a Landscape object from SIG shapefile file

Description

Create a Landscape object from SIG shapefile. Shapefile has to contain a SpatialPolygonsDataFrame. Data in the data frame contain fields (polygons) information. Row names as fields ID, cols names as sources | neutral | receptors (for a given field, the value is 1 for the type of the field (source or neutral or receptor), otherwise 0).

Usage

loadLandscapeSIG(dsn, layer, format = TRUE)

Arguments

dsn

folder path to the source files

layer

file name without extension

format

only load data needed Landscpae-class (default TRUE)

Value

A SpatialPolygonsDataFrame object

Examples

Run this code
# NOT RUN {
land <- loadLandscapeSIG("/path/to/directory/","fileName")
plot(land)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab