Create a codebook, table of labels to explore variables and values in your data
Source:R/label_book.R
label_book.Rd
Create a codebook, table of labels to explore variables and values in your data
Arguments
- df
data.frame, usually an object obtained by reading SPSS datafile with
read_sav
orread.spss
- max.vals
integer, how many value labels per each variable shoud be listed in the table, default is 25
- vars
can be integer, character, or range of integers or characters. Variables indexes or names for getting subsets of label book.
- view
logical, whether the result should be shown in the RStudio viewer pane. Default is TRUE. If FALSE, html file named 'label_book_output.html' is saved in your working directory.
- translate
Logical. Use
translate
to auto-translate value and variable labels to English. Default is FALSE.