powered by
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).
quantile_example_data
range_example_data_long
quantile_to_range_long(data, keep_quantile_col = TRUE)
a data.frame following the specifications shown in the example range_example_data_long)
keep the quantile column in the final output after transformation (default is FALSE)
a data.frame in a long interval range format
# NOT RUN { quantile <- scoringutils::quantile_example_data long <- scoringutils::quantile_to_range_long(quantile) # }
Run the code above in your browser using DataLab