shapeLopodData: Create a LopodData object from Raster data

Description Usage Arguments Value Examples

View source: R/shapeLopodData.R

Description

Create a LopodData object from Raster data

Usage

1
2
shapeLopodData(Shapefile, fieldN = "sampEffort", fieldY = "detections",
  Adjacency = T, keepFields = T)

Arguments

Shapefile

SpatialPolygonsDataFrame Object with at least two Fields corresponding to sampling effort and number of detections in each feature

fieldN

Field in Shapefile corresponding to sampling effort (number of sampling events)in each feature.

fieldY

Field in Shapefile corresponding to number of detections in each feature.

Adjacency

Boolean. If TRUE, and adjacency matrix is computed.

keepFields

Boolean. If TRUE, other fields of the Shapefile will be kept and "sampEffort" and "detections" will be added. If FALSE, only the "sampEffort" and "detections" will be kept in the LopodData Object.

Value

A LopodData object to be used in modelLopod.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("Andropogon_shape", package = "bayesLopod")
ld_Shape = shapeLopodData(Shapefile = Andropogon_shape, fieldN = "sampEffort",
fieldY = "detections",  Adjacency = FALSE, keepFields = FALSE)

## Not run: 
data("Andropogon_shape", package = "bayesLopod")
ld_Shape = shapeLopodData(Shapefile = Andropogon_shape, fieldN = "sampEffort",
fieldY = "detections",  Adjacency = TRUE, keepFields = TRUE)

## End(Not run)

bayesLopod documentation built on Jan. 4, 2018, 5:08 p.m.