View source: R/sampling_from_distribution.R
sampling_from_distribution | R Documentation |
Sampling from the distribution of something
sampling_from_distribution(X, upperlimit, lowerlimit, extend, n)
X |
a vector (numeric or factor) where the distribution/probility will be generated |
upperlimit |
if X is numeric, set upper limit |
lowerlimit |
if X is numeric, set lower limit |
extend |
If X is numeric, how much you want to extend from the lower and upper existing X. |
n |
How many you want to sample |
a resampled thing
data("mosquito")
sampling_from_distribution(Yotu)
data("freelive2")
sampling_from_distribution(YR2,
upperlimit=200,
lowerlimit=0,
n=length(YR2)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.