srlen | R Documentation |
Example
srlen(object, ...)
object |
An FLStock object with 'female' and 'male' units |
female |
Character specifying female unit name |
male |
Character specifying male unit name |
FLQuant with sex ratio values (female proportion) at length
## 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 \$
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.