Skip to contents

Given a data frame and a quantile number, returns the corresponding column from the data frame.

Usage

get_quant_col(df, num)

Arguments

df

The data frame. Should contain a "val_q*" column corresponding to num

num

A number between 0 and 100 inclusive.

Value

The num quantile column in df.

Examples

# returns 4:6
casteval:::get_quant_col(data.frame(time=1:3, val_q50=4:6), 50)
#> [1] 4 5 6