Learn R Programming

Rdistance (version 4.0.5)

predDensity: predDensity - Density on transects

Description

An internal prediction method for computing density on the sampled transects.

Usage

predDensity(object, propUnitSurveyed = 1)

Value

A data frame containing the original data used to fit the distance function, plus an additional column containing the density of individuals on each transect.

Arguments

object

An Rdistance model frame or fitted distance function, normally produced by a call to dfuncEstim.

propUnitSurveyed

A scalar or vector of real numbers between 0 and 1. The proportion of the default sampling unit that was surveyed. If both sides of line transects were observed, propUnitSurveyed = 1. If only a single side of line transects were observed, set propUnitSurveyed = 0.5. For point transects, this should be set to the proportion of each circle that was observed. Length must either be 1 or the total number of transects in x.

Examples

Run this code
data(sparrowDfuncObserver)
predict(sparrowDfuncObserver, type="density")

 

Run the code above in your browser using DataLab