srlen: Example

srlenR Documentation

Example

Description

Example

Usage

srlen(object, ...)

Arguments

object

An FLStock object with 'female' and 'male' units

female

Character specifying female unit name

male

Character specifying male unit name

Value

FLQuant with sex ratio values (female proportion) at length

Examples

## Not run: 

data(ple4sex)

## Males are =0, so set to same as females
mat(ple4sex)[,,"M"]=mat(ple4sex)[,,"F"]

index=osr(ple4sex)

ggplot(index) + 
  geom_line(aes(x = year, y = data)) +
  ylab("Operational Sex Ratio (Female Proportion)")
  
 
## End(Not run)
Calculate Sex Ratio-at-Length for an FLStock object

$ Sex ratio-at-length = \frac{N_{1,f}}{N_{1,f} + N_{1,m}} \$
    Where:
    
    - \$ N_{1,f} \$: Female numbers at length \$ l \$
    - \$ N_{1,m} \$: Male numbers at length \$ l \$
    
    


laurieKell/FLCandy documentation built on April 17, 2025, 5:23 p.m.