formatpct: Format 2x2 table for html

Description Usage Arguments Examples

View source: R/formatpct.R

Description

Format 2x2 table for html

Usage

1
formatpct(M, fmt = "%1.0f (%s)%s")

Arguments

M

a 2x2 matrix

fmt

string that represents a format

Examples

1
2
3
4
# Not run:
data(iris)
Mat <- table(iris$Species == "setosa", iris$Petal.Width > 1)
formatpct(M = mat)

thomasgstewart/ahsqc documentation built on Jan. 24, 2021, 11:19 a.m.