library(knitr) source("R/ini.R")
To follow this tutorial you should have installed the following packages:
You can do so as follows:
install.packages(c("iterators")) install.packages(c("FLCore"), repos="http://flr-project.org/R")
library(devtools) install_github("lauriekell/FLCandy")
library(plyr) library(reshape) library(randtests)
library(FLCore) library(FLBRP) library(FLasher) library(ggplotFL)
library(FLCandy) library(mydas) library(FLife)
data("ple4") data("ple4brp")
om=fwdWindow(ple4,end=2050,ple4brp) deviates=rlnoise(100,rec(om)%=%1,0.3,0.7) om=propagate(om,100) om.msy=fwd(om,fbar=fbar(om)[,ac(2018:2050)]%=%c(refpts(ple4brp)["msy","harvest"]),sr=ple4brp,residuals=deviates) om.f01=fwd(om,fbar=fbar(om)[,ac(2018:2050)]%=%c(refpts(ple4brp)["f0.1","harvest"]),sr=ple4brp,residuals=deviates) om.mey=fwd(om,fbar=fbar(om)[,ac(2018:2050)]%=%c(refpts(ple4brp)["mey","harvest"]),sr=ple4brp,residuals=deviates)
oms=FLStocks("MSY" =om.msy, "F0.1"=om.f01, "MEY" =om.mey) plot(oms)
stats=ldply(oms,function(x) omSmry(x,ple4brp)) head(stats)
pMetrics=ddply(stats, .(.id), mydas:::smryStat) pMetrics
To learn more about this subsection, check the FLPKG.
@kell2017flr
r version$version.string
r packageVersion('FLCore')
r date()
This document is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.
Name SURNAME. Institution, address, 00000 Place, Country https://website.dom.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.