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

data(linetran)

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

data(linetran)
linetran
#>        dc1 dc2 dc3 dc4 Length     area habitat
#> Line1    3   6   5   0      5 5.953128       A
#> Line10   8   5   6   4      7 4.523539       A
#> Line11   0   0   0   0      3 5.812511       A
#> Line12   2   1   1   1      4 5.929066       A
#> Line2    0   2   0   0      2 5.039786       A
#> Line3    4   1   2   1      6 3.872571       A
#> Line4    3   3   2   0      4 3.890749       B
#> Line5    1   2   0   0      3 6.246779       B
#> Line6    2   1   0   1      1 6.813926       B
#> Line7    6   0   3   2      4 4.323164       B
#> Line8    5   1   2   0      4 7.059182       B
#> Line9    8   5   2   2      5 4.752804       B

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