get_odds_bounds: Get Lower/Upper Bounds for Odds to Display

Description Usage Arguments Value Examples

View source: R/other_utils.R

Description

Get Lower/Upper Bounds for Odds to Display

Usage

1
get_odds_bounds(data, column_name, lower = TRUE, increment = 5)

Arguments

data

a data frame.

column_name

character. Name of target column which value is between [0, 1] or [0, 100].

lower

logical, default TRUE. If set TRUE then will return the lower bound, otherwise will return the upper bound.

increment

numeric, default is 5. It is the increment of bound.

Value

numeric

Examples

1
2
3
df <- data.frame(a = c(11, 23, 1), b = c(0.2, 0.3, 0.1))
get_odds_bounds(df, 'a', lower = FALSE)
get_odds_bounds(df, 'b', increment = 0.2, lower = FALSE)

YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.