cb_table: Codebook Table for one variable

View source: R/cb_table.R

cb_tableR Documentation

Codebook Table for one variable

Description

Codebook Table for one variable

Usage

cb_table(
  metadata,
  num.var,
  .meta = meta,
  .codes_de = codes_de,
  .codes_en = codes_en,
  .miscodes = miscodes,
  lbl.space = "1em",
  lblen.space = "1em",
  mis.space = "1em"
)

Arguments

metadata

a data.frame object with survey metadata

num.var

single numeric value indexing column of variable in metadata

.meta

numeric vector indexing rows of variable information in metadata (defaults to meta)

.codes_de

numeric vector indexing rows of German value labels in metadata (defaults to codes_de)

.codes_en

numeric vector indexing rows of English value labels in metadata (defaults to codes_en)

.miscodes

numeric vector indexing rows of missing labels in metadata (defaults to miscodes)

lbl.space

optional argument to adjust table space between variable information and German value labels (defaults to 1em)

lblen.space

optional argument to adjust table space between German value labels and English value labels (defaults to 1em)

mis.space

optional argument to adjust table space between English value labels and missing labels (defaults to 1em)

Value

codebook table in Latex format


bonschorno/sep documentation built on April 1, 2022, 11:37 a.m.