render.missing.default: Render missing values for table output.

Description Usage Arguments Value Examples

View source: R/table1.R

Description

Called from table1 by default to render missing (i.e. NA) values for displaying in the table.

Usage

1

Arguments

x

A vector.

...

Further arguments, passed to stats.apply.rounding.

Value

A character vector. Each element is to be displayed in a separate cell in the table. The names of the vector are the labels to use in the table. Empty strings are allowed and result in empty table cells.

Examples

1
2
3
y <- factor(sample(0:1, 99, replace=TRUE), labels=c("Female", "Male"))
y[1:10] <- NA
render.missing.default(y)

Example output

Attaching package:table1The following objects are masked frompackage:base:

    units, units<-

     Missing 
"10 (10.1%)" 

table1 documentation built on June 7, 2021, 1:07 a.m.