rkrec | R Documentation |
This function generates k
-records (upper or lower) from a specified continuous distribution.
rkrec(size, k, record = c("upper", "lower"), dist, ...)
size |
number of k-records to generate. |
k |
the rank of the record to generate ( |
record |
the type of record to generate: |
dist |
a character string specifying the name of the continuous distribution
(e.g., |
... |
further arguments to be passed to |
Note: Setting k = 1
generates standard (1-)records.
A numeric vector of size size
, representing the simulated k-records.
ros
# Generate 5 upper 2-records from the normal distribution
rkrec(size = 5, k = 2, record = "upper", dist = "norm", mean = 0, sd = 1)
# Generate 5 lower 3-records from the exponential distribution
rkrec(size = 5, k = 3, record = "lower", dist = "exp", rate = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.