Description Usage Arguments Value Examples
View source: R/rasterLopodData.R
Create a LopodData object from Raster data
1 2 | rasterLopodData(rasterN, rasterY, Adjacency = T, extSample = 0.025,
extDetection = 0.15)
|
rasterN |
Raster object with sampling effort (number of sampling events)in each cell. |
rasterY |
Raster object with number of detections in each cell. |
Adjacency |
Boolean. If TRUE, and adjacency matrix is computed. |
extSample |
Number between 0 and 1. Maximum distance (relative to the diagonal of the raster) from a sampled cell that should be included in the study area. If 0, there is no extrapolation to not sampled cells. |
extDetection |
Number between 0 and 1. Maximum distance (relative to the diagonal of the raster) from cell in which the species was detected that should be included in the study area. If 0, there is no extrapolation to not sampled cells. |
A LopodData object to be used in modelLopod.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data("simSpRecords", package = "bayesLopod")
data("simSpSamplingEffort", package = "bayesLopod")
simSpRasters = xyToRaster(xyRecords = simSpRecords,xySamplingEffort = simSpSamplingEffort,
basemap = NULL, nrows = 10, extentExpansion = 0)
ld_Raster = rasterLopodData(rasterN = simSpRasters[["samplingEffort"]],
rasterY = simSpRasters[["spDetections"]], Adjacency = FALSE )
## Not run:
data("simSpRecords", package = "bayesLopod")
data("simSpSamplingEffort", package = "bayesLopod")
simSpRasters = xyToRaster(xyRecords = simSpRecords,xySamplingEffort = simSpSamplingEffort,
basemap = NULL, nrows = 50, extentExpansion = 0)
ld_Raster_adMatrix = rasterLopodData(rasterN = simSpRasters[["samplingEffort"]],
rasterY = simSpRasters[["spDetections"]], Adjacency = TRUE )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.