tbl_gt: Make Table Using 'gt' Package for Neurocognitive Domains

View source: R/tables.R

tbl_gtR Documentation

Make Table Using gt Package for Neurocognitive Domains

Description

Create a table of domain counts using dplyr and gt packages.

Usage

tbl_gt(
  data,
  pheno = NULL,
  table_name = NULL,
  source_note = NULL,
  names = NULL,
  title = NULL,
  tab_stubhead = NULL,
  caption = NULL,
  process_md = FALSE,
  fn_scaled_score = NULL,
  fn_standard_score = NULL,
  fn_t_score = NULL,
  fn_z_score = NULL,
  fn_raw_score = NULL,
  grp_scaled_score = NULL,
  grp_standard_score = NULL,
  grp_t_score = NULL,
  grp_z_score = NULL,
  grp_raw_score = NULL,
  dynamic_grp = NULL,
  vertical_padding = NULL,
  multiline = TRUE,
  ...
)

Arguments

data

File or path to data.

pheno

Phenotype name.

table_name

Name of the table to be saved.

source_note

Source note to be added to the table.

names

Names of the columns.

title

Title of the table.

tab_stubhead

Stubhead of the table.

caption

Caption of the table.

process_md

Process markdown.

fn_scaled_score

Footnote for scaled score.

fn_standard_score

Footnote for standard score.

fn_t_score

Footnote for t score.

fn_z_score

Footnote for z score.

fn_raw_score

Footnote for raw scores.

grp_scaled_score

Groups for scaled score.

grp_standard_score

Groups for standard score.

grp_t_score

Groups for t score.

grp_z_score

Groups for z score.

grp_raw_score

Groups for raw scores.

dynamic_grp

Generalized grouping parameter.

vertical_padding

Vertical padding.

multiline

Multiline footnotes, Default = TRUE.

...

Additional arguments to be passed to the function.

Value

A formatted table with domain counts.


jtrampush/npsych.data documentation built on Feb. 25, 2025, 12:30 a.m.