Description Usage Arguments Value Examples
Resamples from a distribution to generate a frequency table
Simulates a normal density function from an
FLQuant
1 |
object |
an |
dim |
dimensions of |
size |
sum of frequency disribution |
replace |
sample with replacement?, defaults to
|
mn |
an |
sd |
an |
a FLQuant
with simulated frequency distribution
an FLPar
with expected probability for
lengths-at-age
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(FLCore)
data(ple4sex)
apply(resample(catch.n(ple4sex)[,1:4],2, 100),2, sum)
apply(resample(catch.n(ple4sex)[,1:4],2:3,100),2:3,sum)
apply(resample(catch.n(ple4sex)[,1:4],1:2,100),1:2,sum)
## End(Not run)
## Not run:
mn=FLQuant( 1:5, dimnames=list(age=1:5,year=1991:2000,unit=1:2))
sd=FLQuant((1:5)/10,dimnames=list(age=1:5,year=1991:2000))
md=mixnorm(mn,sd,(1:20)/4)
ggplot(as.data.frame(dat))+geom_line(aes(len,data,group=age))+facet_wrap(year~unit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.