prepare_dsm | R Documentation |
This function formats the simulated data in the right direction for their use in distance sampling and distribution models. The function takes as input information about the density map map_obj
, information about the detected individuals and their observation distance dist_obj
and information about the transects segs_obj
. The output is a list containing the various dist_dsm
, obs_dsm
, grid_dsm
and segs_dsm
objects formatted for their use in the functions of the Distance
and dsm
packages.
prepare_dsm(map_obj, dist_obj, segs_obj)
map_obj |
sf dataframe. Map of the study area with the density. |
dist_obj |
dataframe. Distances between individuals and associated transect/segment and probability that the individual is detected or not. |
segs_obj |
sf dataframe. Transect/segment data. |
list. Objects dist_dsm
, obs_dsm
, grid_dsm
and segs_dsm
formatted for their use in the functions of the Distance
and dsm
packages.
data("dataset_map") data("dataset_segs") data("dataset_detected") list_dsm <- prepare_dsm(map_obj = dataset_map, dist_obj = dataset_detected, segs_obj = dataset_segs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.