Represent a uniform or non-uniform interval.
mfdb_interval(prefix, vect, open_ended = FALSE)
(required) A character prefix to prepend to minimum to create list names
(required) A vector representing the minimum for each group, and the maximum
If TRUE / c('upper'), the last group will ignore it's upper bound and include any value. If c('lower'), the first group will ignore it's lower bound include everything < the first value in vect. If c('upper', 'lower'), both the above occur. This is useful when creating plus groups for GADGET, as GADGET will still be presented a bounded group, but will contain all remaining data.
mfdb_aggregate object that can then be used in querying functions such as
## 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)) ## Create groups len40: [40, 60), len60: [60, inf) (but [60, 80) in the GADGET model) g1 <- mfdb_interval("len", c(40, 60, 80), open_ended = c("upper"))