cat_entry: Creates a categorical entry for a table

Description Usage Arguments Examples

View source: R/cat_entry.R

Description

Creates a categorical entry for a table

Usage

1
2
3
cat_entry(out, x, y, dt, xlab = NULL, pvalue = TRUE,
  fmt = "norm_fmt", pvalue_fmt = function(x, test_method) {    
  formatp(x, digits = 3) %|% "<sup>" %|% test_method %|% "</sup>" })

Arguments

out

empty vector

x

variable for row in table

y

grouping variable

dt

data table

xlab

Label for entry in table

pvalue

Boolean

fmt

Two values are "norm_fmt" or "count_fmt"

pvalue_fmt

A function that takes a pvalue and a test method

Examples

1
# Not run:

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