Description Usage Arguments Value Examples
View source: R/utils_data_handling.R
Transform data from a format that uses quantiles only to one that uses interval ranges to denote quantiles.
Given a data.frame that follows the structure shown in
quantile_example_data
, the function outputs the same
data in a long format as (as shown in
range_example_data_long
).
1 | quantile_to_range_long(data, keep_quantile_col = TRUE)
|
data |
a data.frame following the specifications shown in the example
|
keep_quantile_col |
keep the quantile column in the final output after transformation (default is FALSE) |
a data.frame in a long interval range format
1 2 3 | quantile <- scoringutils2::quantile_example_data
long <- scoringutils2::quantile_to_range_long(quantile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.