linetran: Simulated line transect data

Description Usage Format Examples

Description

Response matrix of animals detected in four distance classes plus transect lengths and two covariates.

Usage

1

Format

A data frame with 12 observations on the following 7 variables.

dc1

Counts in distance class 1 [0-5 m)

dc2

Counts in distance class 2 [5-10 m)

dc3

Counts in distance class 3 [10-15 m)

dc4

Counts in distance class 4 [15-20 m)

Length

Transect lengths in km

area

Numeric covariate

habitat

a factor with levels A and B

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(linetran)
linetran

# Format for distsamp()
ltUMF <- with(linetran, {
        unmarkedFrameDS(y = cbind(dc1, dc2, dc3, dc4), 
        siteCovs = data.frame(Length, area, habitat), 
        dist.breaks = c(0, 5, 10, 15, 20),
        tlength = linetran$Length * 1000, survey = "line", unitsIn = "m")
        })

unmarked documentation built on May 27, 2021, 5:07 p.m.