This function applies skip logic to a survey data frame based on the skip logic rules defined in a JSON file. It modifies the survey data frame by setting values to "NOT APPLICABLE" where the skip logic conditions are met.

apply_skiplogic(path = NULL, x = NULL)

Arguments

path

A character string specifying the path to the JSON file containing skip logic rules. Default is NULL.

x

A data frame or tibble containing the survey data. Default is NULL.

Value

A modified data frame with skip logic applied.

Examples

if (FALSE) { # \dontrun{
# Example usage:
modified_data <- apply_skiplogic(path = "path/to/your/skiplogic.json", x = your_survey_data)
} # }