rasterLopodData: Create a LopodData object from Raster data

Description Usage Arguments Value Examples

View source: R/rasterLopodData.R

Description

Create a LopodData object from Raster data

Usage

1
2
rasterLopodData(rasterN, rasterY, Adjacency = T, extSample = 0.025,
  extDetection = 0.15)

Arguments

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.

Value

A LopodData object to be used in modelLopod.

Examples

 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)

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