View source: R/rep.Distribution.R
| rep.Distribution | R Documentation |
Replicates a constructed distribution into either a
VectorDistribution (class = "vector")
ProductDistribution (class = "product")
MixtureDistribution (class = "mixture")
If the distribution is not a custom Distribution then uses the more efficient
distribution/params constructor, otherwise uses distlist.
## S3 method for class 'Distribution'
rep(x, times, class = c("vector", "product", "mixture"), ...)
x |
Distribution |
times |
|
class |
|
... |
Additional arguments, currently unused. |
rep(Binomial$new(), 10) rep(Gamma$new(), 2, class = "product")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.