Skip to contents

Create an auto-indented table based on tableone::CreateTableOne.

Usage

prettytable_autoindent(
  vars,
  data,
  nspaces = 6,
  includeNA = TRUE,
  nonnormal = NULL,
  ...
)

Arguments

vars

Character vector. Names of variables to summarize

data

Data.frame. Where to search for vars.

nspaces

Integer. Number of spaces to add to the beginning of indented rows.

includeNA

Logical. Whether or not to treat NAs as a factor level.

nonnormal

Character vector. Names of variables in vars to treat as non-normally distributed for summary and test functions.

...

Arguments passed to CreateTableOne