Description Usage Arguments Details Value Author(s) See Also Examples
Simulates the experiment of drawing from a sample space.
1 2 3 4 5 6 7 |
x |
a probability space or a subset of one. |
ntrials |
number of times to repeat the experiment. |
... |
further arguments to be passed to or from other methods. |
The sim()
function is a wrapper for sample()
, except that it strips the probs
component from the result and (if x
is a data frame) renames the rownames of the data frame consecutively from 1:ntrials
.
A data frame if space
is a data frame, or a list if space
is of class ps
.
G. Jay Kerns gkerns@ysu.edu.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.