Description Usage Arguments Value Examples
Get Lower/Upper Bounds for Odds to Display
1 | get_odds_bounds(data, column_name, lower = TRUE, increment = 5)
|
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. |
numeric
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.