Learn R Programming

Rdistance (version 4.0.5)

print.abund: Print abundance estimates

Description

Print an object of class c("abund","dfunc") produced by abundEstim.

Usage

# S3 method for abund
print(x, ...)

Value

0 is invisibly returned

Arguments

x

An object output by abundEstim. This is a distance function object augmented with abundance estimates, and has class c("abund", "dfunc").

...

Included for compatibility to other print methods. Ignored here.

See Also

dfuncEstim, abundEstim, summary.dfunc, print.dfunc, summary.abund

Examples

Run this code
# Load example sparrow data (line transect survey type)
data(sparrowDf)

# Fit half-normal detection function
dfunc <- sparrowDf |> dfuncEstim(formula=dist~groupsize(groupsize))

# Estimate abundance given a detection function
fit <- abundEstim(object = dfunc
                , area = units::set_units(4105, "km^2")
                , ci = NULL)
print(fit)
summary(fit)

if (FALSE) {
# Bootstrap confidence intervals (500 iterations)
# Requires ~4 min
fit <- abundEstim(object = dfunc
                , area = units::set_units(4105, "km^2")
                , ci = 0.95
                , plot.bs = TRUE
                , showProgress = TRUE)
print(fit)
summary(fit)
}

Run the code above in your browser using DataLab