- data
The data frame to generate a codebook for
- name
The name of this dataset (if NULL, will be the same as `data`, limited to 64 characters)
- vardesc
Optional variable properties in the format of a named list of vectors (can be named or unnamed and in the same order as the data) from the options "description", "privacy", "dataType", "identifier", "minValue", "maxValue", "levels", "levelsOrdered", "na", "naValue", "alternateName", "privacy", "unitCode", "unitText"
- ...
Further dataset properties (e.g., description, license, author, citation, funder, url, identifier, keywords, privacyPolicy)
- schemaVersion
defaults to "Psych-DS 0.1.0"
- return
Whether the output should be in JSON format (json), a list (list) or the reformatted data with the codebook as an attribute (data)
- interactive
Whether the function should prompt the user to describe columns and factor levels