nrange | R Documentation |
Often useful for summarizing an association metric and it's confidence interval.
nrange(
.data,
n,
low,
high,
accuracy = 0.01,
name = "Estimate",
formatter = c("comma", "percent", "number"),
remove = TRUE,
big.mark = ","
)
.data |
A tbl. |
n, low, high |
Column names to summarize |
accuracy |
Number to round to, NULL for automatic guess. |
name |
Name of new column. |
formatter |
scales function used to format text |
remove |
If TRUE, remove input columns from output data frame. |
big.mark |
Character used between every 3 digits to separate thousands. |
An object of the same class as .data.
df <- tibble::tribble(
~Group, ~n, ~low, ~high,
"a", 1.323453, 1.154, 1.44,
"b", .801, .741, .9891
)
df %>% nrange(n, low, high, formatter = "comma")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.