Description Usage Arguments Value See Also Examples
View source: R/CategorizationIntervals.R
Parses a character vector of intervals to a data.table with numeric values
1 | extractCategoriesFromIntervals(value, v_s_intervals)
|
value |
a vector. |
v_s_intervals |
a character vector. Each element must start with "[" or "(" and end with "]" or ")" and have two numeric values seperated by ",". |
data.table with columns value, min, max, close_left and close_right.
categorizeByIntervals
, CategorizationIntervals
1 2 3 | dt_intervals <- extractCategoriesFromIntervals(value = c(1,2,3),
v_s_intervals = c("(-Inf,0)","[0,0]","(0,Inf)"))
print(dt_intervals)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.