Learn R Programming

AICcmodavg (version 2.3-1)

newt: Newt Capture-mark-recapture Data

Description

This is a capture-mark-recapture data set on adult male and female Red-spotted Newts (Notophthalmus viridescens) recorded by Gill (1985). A total of 1079 unique individuals were captured in pitfall traps at a breeding site (White Oak Flat pond, Virginia) between 1975 and 1983.

Usage

data(newt)

Arguments

Format

A data frame with 78 observations on the following 11 variables.

T1975

a binary variable, either 1 (captured) or 0 (not captured) during the 1975 breeding season.

T1976

a binary variable, either 1 (captured) or 0 (not captured) during the 1976 breeding season.

T1977

a binary variable, either 1 (captured) or 0 (not captured) during the 1977 breeding season.

T1978

a binary variable, either 1 (captured) or 0 (not captured) during the 1978 breeding season.

T1979

a binary variable, either 1 (captured) or 0 (not captured) during the 1979 breeding season.

T1980

a binary variable, either 1 (captured) or 0 (not captured) during the 1980 breeding season.

T1981

a binary variable, either 1 (captured) or 0 (not captured) during the 1981 breeding season.

T1982

a binary variable, either 1 (captured) or 0 (not captured) during the 1982 breeding season.

T1983

a binary variable, either 1 (captured) or 0 (not captured) during the 1983 breeding season.

Males

a numeric variable indicating the total number of males with a given capture history.

Females

a numeric variable indicating the total number of females with a given capture history.

Details

A single cohort of individuals was followed throughout the study, as all individuals were marked in 1975 and no new individuals were added during the subsequent years. This data set is used to illustrate classic Cormack-Jolly-Seber and related models (Cormack 1964, Jolly 1965, Seber 1965, Lebreton et al. 1992, Mazerolle 2015).

Examples

Run this code
data(newt)
str(newt)

##convert raw capture data to capture histories
captures <- newt[, c("T1975", "T1976", "T1977", "T1978", "T1979",
                      "T1980", "T1981", "T1982", "T1983")]
newt.ch <- apply(captures, MARGIN = 1, FUN = function(i)
                  paste(i, collapse = ""))

##organize as a data frame readable by RMark package (Laake 2013)
##RMark requires at least one column called "ch" 
##and another "freq" if summarized captures are provided
newt.full <- data.frame(ch = rep(newt.ch, 2),
                        freq = c(newt$Males, newt$Females),
                        Sex = c(rep("male", length(newt.ch)),
                        rep("female", length(newt.ch))))
str(newt.full)
newt.full$ch <- as.character(newt.full$ch)

##delete rows with 0 freqs
newt.full.orig <- newt.full[which(newt.full$freq != 0), ]

Run the code above in your browser using DataLab