Description Usage Arguments Examples
Represent a uniform or non-uniform interval.
1 2 3 | mfdb_interval(prefix, vect, open_ended = FALSE)
## S3 method for class 'mfdb_interval'
as.list(x, ...)
|
prefix |
(required) A character prefix to prepend to minimum to create list names |
vect |
(required) A vector representing the minimum for each group, and the maximum |
open_ended |
If true, the last group will include everything >= the last value in vect |
x |
The |
... |
Ignored. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Make groups of len40 (40--60), len60 (60--80)
g1 <- mfdb_interval("len", c(40, 60, 80))
## Use seq to make life easier
g2 <- mfdb_interval("len", seq(40, 80, by = 20))
## Convert to list representation
as.list(g2)
## Not run:
$len40
[1] 40 60
$len60
[1] 60 80
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.