Learn R Programming

FSAdata (version 0.4.1)

SpotVA2: Ages (subsample) and lengths (all fish) for Spot.

Description

As many as 10 fish per 1-inch total length intervals from the SpotVA1 data frame in FSA were obtained for age assignment. The remaining fish in the file were only measured for length (i.e., the ages were deleted). This data file can be used to demonstrate the use of age-length keys.

Arguments

Format

A data frame of 403 observations on the following 2 variables:

tl

Measured total lengths (in inches)

age

Ages assigned from examination of otoliths

Topic(s)

  • Age-Length Key

See Also

SpotVA1 in FSA.

Examples

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

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

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

Run the code above in your browser using DataLab