Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rand

Random Simulation Function


Description

See Distribution$rand

Usage

rand(object, n, simplify = TRUE)

Arguments

object

(Distribution)

n

(numeric(1))
Number of points to simulate from the distribution. If length greater than 1, then n <- length(n),

simplify

logical(1)
If TRUE (default) simplifies the pdf if possible to a numeric, otherwise returns a data.table::data.table.

Value

Simulations as either a numeric if simplify is TRUE or as a data.table::data.table.


distr6

The Complete R6 Probability Distributions Interface

v1.5.2
MIT + file LICENSE
Authors
Raphael Sonabend [aut, cre] (<https://orcid.org/0000-0001-9225-4654>), Franz Kiraly [aut], Peter Ruckdeschel [ctb] (Author of distr), Matthias Kohl [ctb] (Author of distr), Nurul Ain Toha [ctb], Shen Chen [ctb], Jordan Deenichin [ctb], Chengyang Gao [ctb], Chloe Zhaoyuan Gu [ctb], Yunjie He [ctb], Xiaowen Huang [ctb], Shuhan Liu [ctb], Runlong Yu [ctb], Chijing Zeng [ctb], Qian Zhou [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.