Description Usage Arguments Value Examples
View source: R/generateIntervals.R
Generate a set of intervals with endpoints uniformly distributed between 0 and 1.
1 | generateIntervals(n, sort = FALSE, f = NULL)
|
n |
number of intervals to generate |
sort |
if TRUE, sort the output intervals by their left endpoints |
f |
transformation to apply to each endpoint |
Data frame with columns 'left' and 'right'. It is guaranteed that every value in 'left' is no greater than the corresponding value in 'right'.
1 2 3 | generateIntervals(10)
generateIntervals(20, f = qnorm)
generateIntervals(5, TRUE, f = function(x) { x + 1 })
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.