add_esi_threshold: add threshold value for each ESI discipline

View source: R/add_esi_threshold.R

add_esi_thresholdR Documentation

add threshold value for each ESI discipline

Description

add threshold value for each ESI discipline

Usage

add_esi_threshold(df, discipline, date = "last")

Arguments

df

data.frame

discipline

a column belong to the character vector of 22 ESI disciplines

date

the date when the threshold line was published, can be date = "last", date = "all" or the specified date = c("20200326")

Value

data.frame that adds a new column of threshold line for the specified date

Examples

df %>% add_esi_threshold(x, date = "last")
df %>% add_esi_threshold(x, date = "all")
df %>% add_esi_threshold(x, date = c("20200326"))

perlatex/tidyESI documentation built on Nov. 25, 2022, 11:14 p.m.