binary_entry: Creates a binary entry for a table

Description Usage Arguments Examples

View source: R/binary_entry.R

Description

Creates a binary entry for a table

Usage

1
2
3
4
binary_entry(out, x, y = initial_approach, dt = data, xlab = NULL,
  level = c("Yes", "1"), 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.