Format an object of class proptab for printing depending on its attributes.

# S3 method for proptab
format(x, digits = NULL, percent = NULL, justify = "right", ...)

Arguments

x

object of class proptab

digits

number of digits to display

percent

if not NULL, add a percent sign after each value

justify

justification of character vectors. Passed to format.default

...

other arguments to pass to format.default

Details

This function is designed for internal use only.