This function reads a JSON file from the specified path to get existing descriptions, and then allows the user to set new descriptions for variables that are not already described. The function returns a tibble with variable names and their corresponding descriptions.

set_descriptions(path = NULL, x = NULL)

Arguments

path

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

x

A data frame or tibble containing the variables for which descriptions need to be set. Default is NULL.

Value

A tibble with two columns: var (variable names) and desc (descriptions).

Examples

if (FALSE) { # \dontrun{
# Example usage:
descriptions <- set_descriptions(path = "path/to/your/jsonfile.json", x = your_dataframe)
} # }