print.abund: Print abundance estimates

View source: R/print.abund.r

print.abundR Documentation

Print abundance estimates

Description

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

Usage

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

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.

Value

0 is invisibly returned

See Also

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

Examples

# 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)

## Not run: 
# 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)

## End(Not run)

Rdistance documentation built on April 12, 2025, 1:12 a.m.