Description Usage Arguments Value
make "density" object
1 2 | make_density_obj(base_density = "norm", params = list(mean = 0, sd =
1), sample_size = 500)
|
base_density |
a base string for a density with d\* and r\* functions, for example "norm", as it has "dnorm" and "rnorm". |
params |
a named list of parameters shared between the d\* and r\* functions |
sample_size |
number of samples to produce from this distirbution. |
an S3 object of type "density", with components:
base string: base name of distribution.
density function: density function of distribution, takes one argument, its location.
generator function: generator function of distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.