sampling_from_distribution {MUVR2} | 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)
)