prepare_dsm: Prepare data for distance sampling analysis

View source: R/prepare_dsm.R

prepare_dsmR Documentation

Prepare data for distance sampling analysis

Description

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.

Usage

prepare_dsm(map_obj, dist_obj, segs_obj)

Arguments

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.

Value

list. Objects dist_dsm, obs_dsm, grid_dsm and segs_dsm formatted for their use in the functions of the Distance and dsm packages.

Examples


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)



maudqueroue/intercali documentation built on Oct. 8, 2022, 2:09 p.m.