q.rename_headers: Internal function: Format table headers

View source: R/q.rename_headers.R

q.rename_headersR Documentation

Internal function: Format table headers

Description

Format table headers depending on the type of analysis being conducted.

Usage

q.rename_headers(x, type="default")

Arguments

x

data frame

type

Type of analysis. Specify one of these options: c("longitudinal", "categorical", "default")

Details

For categorical variables, adds "n (

Value

Returns a tibble of results

Author(s)

Abdul Malik Sulley

Examples

df.header <- c("#", "Group A", "Group B", "p.val")
row1 <- c("Day 7", 20, 50, 0.040)
row2 <- c("Day 14", 3, 12, 0.010)
df <- rbind.data.frame(row1, row2)
names(df) <- df.header
q.rename_headers(df)

qwickmalik/qwickr documentation built on March 30, 2022, 2:59 p.m.