sample_to_range_long: Change Data from a Sample Based Format to a Long Interval...

Description Usage Arguments Value Examples

Description

Transform data from a format that is based on predictive samples to a format based on interval ranges

Usage

1
2
3
4
5
6
sample_to_range_long(
  data,
  range = c(0, 50, 90),
  type = 7,
  keep_quantile_col = TRUE
)

Arguments

data

a data.frame with samples

range

a numeric vector of interval ranges to extract (e.g. c(0, 50, 90))

type

type argument passed down to the quantile function. For more information, see quantile

keep_quantile_col

keep quantile column, default is TRUE

Value

a data.frame in a long interval range format

Examples

1
2
3
example_data <- scoringutils2::integer_example_data

quantile_data <- scoringutils2::sample_to_range_long(example_data)

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