Learn R Programming

scoringutils (version 0.1.7.2)

quantile_to_range_long: Change Data from a Plain Quantile Format to a Long Range Format

Description

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).

Usage

quantile_to_range_long(data, keep_quantile_col = TRUE)

Arguments

data

a data.frame following the specifications shown in the example range_example_data_long)

keep_quantile_col

keep the quantile column in the final output after transformation (default is FALSE)

Value

a data.frame in a long interval range format

Examples

Run this code
# NOT RUN {
quantile <- scoringutils::quantile_example_data

long <- scoringutils::quantile_to_range_long(quantile)

# }

Run the code above in your browser using DataLab