-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfishbase.runs.r
34 lines (30 loc) · 1.57 KB
/
fishbase.runs.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
fish= "Gadus morhua"
vb.params= popgrowth(fish,fields=c("TLinfinity","K","to"))
vb.mean= apply(vb.params,2,mean,na.rm=T)
vbout= vbrecruit.f(birth.year= 2017, final.year= 2030, Linf= round(vb.mean[1],0), k= round(vb.mean[2],2), t0= round(vb.mean[3],2),
cv= 0.1, lengths.of.interest=c(25,45,60,80))
title(fish)
fish= "Reinhardtius hippoglossoides"
vb.params= popgrowth(fish,fields=c("TLinfinity","K","to"))
vb.mean= apply(vb.params,2,mean,na.rm=T)
vbout= vbrecruit.f(birth.year= 2014, final.year= 2040, Linf= round(vb.mean[1],0), k= round(vb.mean[2],2), t0= round(vb.mean[3],2),
cv= 0.1, lengths.of.interest=c(25,45,60,80))
title(fish)
fish= "Hippoglossus hippoglossus"
vb.params= popgrowth(fish,fields=c("TLinfinity","K","to"))
vb.mean= apply(vb.params,2,mean,na.rm=T)
vbout= vbrecruit.f(birth.year= 2014, final.year= 2050, Linf= round(vb.mean[1],0), k= round(vb.mean[2],2), t0= round(vb.mean[3],2),
cv= 0.1, lengths.of.interest=c(60,85,120,150,200))
title(fish)
fish= "Sebastes mentella"
vb.params= popgrowth(fish,fields=c("TLinfinity","K","to"))
vb.mean= apply(vb.params,2,mean,na.rm=T)
vbout= vbrecruit.f(birth.year= 2011, final.year= 2030, Linf= round(vb.mean[1],0), k= round(vb.mean[2],2), t0= round(vb.mean[3],2),
cv= 0.1, lengths.of.interest=c(15,22,25,30,35))
title(fish)
fish= "Melanogrammus aeglefinus"
vb.params= popgrowth(fish,fields=c("TLinfinity","K","to"))
vb.mean= apply(vb.params,2,mean,na.rm=T)
vbout= vbrecruit.f(birth.year= 2017, final.year= 2030, Linf= round(vb.mean[1],0), k= round(vb.mean[2],2), t0= round(vb.mean[3],2),
cv= 0.1, lengths.of.interest=c(35,45,60))
title(fish)