This function reads a JSON file from the specified path, extracts the codebook information, and returns a data frame with the variable names, values, and response options.

get_codebook(path = NULL)

Arguments

path

A character string specifying the path to the JSON file containing the codebook information. Default is NULL.

Value

A data frame containing the codebook information, including variable names, values, and response options.

Examples

if (FALSE) { # \dontrun{
# Example usage:
codebook <- get_codebook(path = "path/to/your/codebook.json")
} # }