Description Usage Arguments Value Examples
View source: R/shapeLopodData.R
Create a LopodData object from Raster data
1 2 | shapeLopodData(Shapefile, fieldN = "sampEffort", fieldY = "detections",
Adjacency = T, keepFields = T)
|
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. |
A LopodData object to be used in modelLopod.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.