print.prcalc_index_compare | R Documentation |
prcalc_index_compare
object.Printing a prcalc_index_compare
object.
## S3 method for class 'prcalc_index_compare'
print(x, subset = NULL, hide_id = FALSE, use_gt = FALSE, digits = 3, ...)
x |
a |
subset |
a |
hide_id |
a |
use_gt |
a |
digits |
the number of decimal places. Default is 3. |
... |
ignored. |
data(jp_upper_2019)
pr_obj1 <- prcalc(jp_upper_2019, m = 50, method = "dt")
pr_obj2 <- prcalc(jp_upper_2019, m = 50, method = "dt", threshold = 0.025)
pr_obj3 <- prcalc(jp_upper_2019, m = 50, method = "dt", threshold = 0.05)
compare(list("t = 0%" = pr_obj1, "t = 2.5%" = pr_obj2, "t = 5%" = pr_obj3))
list("t = 0%" = index(pr_obj1),
"t = 2.5%" = index(pr_obj2),
"t = 5%" = index(pr_obj3)) |>
compare() |>
print(subset = c("lh", "gallagher", "rae", "dhondt", "ad"),
hide_id = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.