CreateFDataYGDS: Create a FDataYGDS object to calculate IKA (Encounter...

Description Usage Arguments Details Value

View source: R/CreateFDataYGDS.R

Description

Create a FDataYGDS object to calculate IKA (Encounter Rate),and estimate abundance using gdistsamp function (package unmarked).

Usage

1
2
3
4
5
CreateFDataYGDS(data, siteCovs = NULL, samplingEffort, nbReplicat = 12,
  stripWidth = 80, DistanceClass = 5, unitsIn = "m", survey = "line",
  species = "Cebus", groupNumber = TRUE, naRmNumber = FALSE,
  naRmDistance = FALSE, missingValuesNumber = "random",
  missingValuesDistance = "random", ...)

Arguments

data

A FData object.

siteCovs

A data.frame object with covariates. Warning !!! Sample name in line must be ordered as FData object.

samplingEffort

A data.frame object with sampling effort created by CalculateSamplingEffort function.

nbReplicat

A replicate number. Default value is 12.

stripWidth

A distance value used to define stripwidth and truncate distance. Default value is 80.

DistanceClass

A distance value used as distance interval of classes. Default value is 5.

unitsIn

Either "m" or "km" defining the measurement units for both stripWidth and DistanceClass. See ? unmarkedFrameDS function (package unmarked). Default value is "m".

survey

Either "point" or "line" for point- and line-transects. See ? unmarkedFrameDS function (package unmarked).

species

Chosen species. Default value is "line".

groupNumber

Logical. If TRUE, abundance is calculated using groups as observations. If FALSE, abundance is calculated using individuals as observations. All values of 'number' variable of FData object are replaced by 1, including NA. Default value is TRUE.

naRmNumber

Logical. If TRUE, observations which are not species number values (NA) are removed. Default value is FALSE.

naRmDistance

Logical. If TRUE, observations which are not distance values (NA) are removed. Default value is FALSE.

missingValuesNumber

Either method "mean" or "random". See details. Default value is "mean".

missingValuesDistance

Either method "mean" or "random". See details. Default value is "mean".

...

other parameters of the unmarkedFrameGDS function(unmarked package)

Details

Method "mean" replaces a NA value by the mean value of the sample. Method "random" replaces a NA value by a value drawn randomly from the sample.

Value

Return a list with a FData object, a array with observations, and an unmarkedFrameGDS object which can used in gdistsamp function (package unmarked).


thomasdenis973/FormatDataToGDS documentation built on May 24, 2019, 2:03 a.m.