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 |
Loading required package: combinat
Attaching package: 'combinat'
The following object is masked from 'package:utils':
combn
Loading required package: fAsianOptions
Loading required package: timeDate
Loading required package: timeSeries
Loading required package: fBasics
Rmetrics Package fBasics
Analysing Markets and calculating Basic Statistics
Copyright (C) 2005-2014 Rmetrics Association Zurich
Educational Software for Financial Engineering and Computational Science
Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
https://www.rmetrics.org --- Mail to: info@rmetrics.org
Loading required package: fOptions
Rmetrics Package fOptions
Pricing and Evaluating Basic Options
Copyright (C) 2005-2014 Rmetrics Association Zurich
Educational Software for Financial Engineering and Computational Science
Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
https://www.rmetrics.org --- Mail to: info@rmetrics.org
Loading required package: hypergeo
Loading required package: VGAM
Loading required package: stats4
Loading required package: splines
Attaching package: 'VGAM'
The following object is masked from 'package:hypergeo':
is.zero
The following object is masked from 'package:fAsianOptions':
erf
Attaching package: 'prob'
The following objects are masked from 'package:base':
intersect, setdiff, union
rank suit
1 6 Heart
2 8 Spade
3 2 Club
4 K Heart
5 Q Heart
[[1]]
rank suit
45 7 Spade
47 9 Spade
[[2]]
rank suit
12 K Club
30 5 Heart
[[3]]
rank suit
15 3 Diamond
41 3 Spade
[[4]]
rank suit
6 7 Club
49 J Spade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.