View source: R/data_prep_obs.R
prepare_data_obs | R Documentation |
Transform raw observation data into multiple sub data.frame for next analysis of other functions of the package.
prepare_data_obs( sp, obs_base, legdata, segdata, shape, shape_layer, projection, truncation = NULL, remove_sp = NULL, unit_km = FALSE )
sp |
Name of taxon, group, family or species. |
obs_base |
Observation database. |
legdata |
"Legdata" data.frame, built with |
segdata |
"Segdata" data.frame, built with |
shape |
Shapefile of the study area. It can be either a |
shape_layer |
Layer of the shapefile if shape is a |
projection |
Projection of |
truncation |
Default = |
remove_sp |
Species to remove of the data set. |
unit_km |
Default = |
This function return a list containing :
distdata : Data.frame with distance information, which aim to be an input for
ds
.
obsdata : Data.frame containing information at observation scale.
countdata_leg : A data.frame that merge leg scale effort informations with number of sightings and number of individuals (N and Y).
countdata_seg : A data.frame that merge segment scale effort informations with number of sightings and number of individuals (N and Y).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.