resample,FLQuant-method | R Documentation |
Resamples from a distribution to generate a frequency table
Resamples from a distribution to generate a frequency table
## S4 method for signature 'FLQuant'
resample(x, dim = 2:6, size, replace = T, ...)
## S4 method for signature 'FLQuant'
resample(x, dim = 2:6, size, replace = T, ...)
dim |
dimensions of |
size |
sum of frequency disribution |
replace |
sample with replacement?, defaults to |
... |
any other parameters |
object |
an |
a FLQuant
with simulated frequency distribution
a FLQuant
with simulated frequency distribution
## 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:
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.