codebook: Codebook

Description Usage Arguments Value Examples

View source: R/codebook.R

Description

This function builds PDF codebooks from data frames.

Usage

1
2
3
4
5
6
7
8
9
codebook(
  df,
  path = getwd(),
  weights = NA,
  main = deparse(substitute(file)),
  sub = "Codebook",
  description = "",
  print_table = TRUE
)

Arguments

df

A data frame

path

Path to the data frame directory

weights

Variable containing values used to weight the dataset

main

Main codebook title

sub

Codebook subtitle

description

Data frame description text

print_table

Logical. Indicates whether frequency tables of categorical variables must be displayed

Value

A PDF file stored in the same directory as the data frame.

Examples

1
2

pmerckle/datatools documentation built on Feb. 21, 2022, 2:19 a.m.