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

Description Usage Arguments Value Examples

View source: R/utils_data_handling.R

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

1
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

1
2
3
quantile <- scoringutils2::quantile_example_data

long <- scoringutils2::quantile_to_range_long(quantile)

nikosbosse/scoringutils2 documentation built on Jan. 8, 2021, 12:12 p.m.