Learn R Programming

FSAdata (version 0.4.1)

SnapperHG1: Age (subsample) and length (all fish) of Snapper from two survey locations.

Description

A large sample (not random or proportional) of Snapper (Pagrus auratus) were aged from otoliths, with the remainder of the fish just measured for length. Note that age-20 is actually age 19+.

Arguments

Format

A data frame of 18421 observations on the following 3 variables:

len

Measured lengths (cm)

age

Ages assigned from examination of otoliths

survey

Survey location (KAH8810 or KAH0012)

Topic(s)

  • Age-Length Key

Examples

Run this code
data(SnapperHG1)
str(SnapperHG1)
head(SnapperHG1)

## Extract one of the sample surveys
sn1 <- subset(SnapperHG1,survey=="KAH8810")

## Extract the aged sample
sn1.aged <- subset(sn1,!is.na(age))
str(sn1.aged)

## Extract the length sample
sn1.length <- subset(sn1,is.na(age))
str(sn1.length)

Run the code above in your browser using DataLab