Description Usage Arguments Details Value
View source: R/CreateFDataYGDS.R
Create a FDataYGDS object to calculate IKA (Encounter Rate),and estimate abundance using gdistsamp function (package unmarked).
1 2 3 4 5 |
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) |
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.
Return a list with a FData object, a array with observations, and an unmarkedFrameGDS object which can used in gdistsamp function (package unmarked).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.