print.prcalc: Printing a 'prcalc' object.

View source: R/print.R

print.prcalcR Documentation

Printing a prcalc object.

Description

Printing a prcalc object.

Usage

## S3 method for class 'prcalc'
print(
  x,
  prop = FALSE,
  show_total = TRUE,
  use_gt = FALSE,
  digits = 3,
  head = Inf,
  ...
)

Arguments

x

a prcalc object.

prop

If TRUE, voteshare and seatshare are displayed. Default is FALSE.

show_total

If TRUE, total vote (share) and seat (share) are displayed on the last column. Default is TRUE.

use_gt

Use gt package? Default is FALSE.

digits

the number of decimal places. Default is 3.

head

For example, if head = 6, only six rows are displayed. Default is Inf (entire rows).

...

ignored.

See Also

summary.prcalc

Examples

data(jp_upper_2019)
jp2019 <- prcalc(jp_upper_2019, m = 50, method = "dt")

print(jp2019)


JaehyunSong/PRcalc documentation built on April 17, 2024, 1:23 p.m.