Skip to content

Commit

Permalink
clean arg col_labels to match cleaned survey and choices dfs (bug fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbarks committed Mar 29, 2024
1 parent 3f4d02e commit 06f124e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/dict_from_odk.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ dict_from_odk <- function(survey,
names(choices) <- janitor::make_clean_names(names(choices))

if (is.null(col_labels)) col_labels <- grep("^label_*", names(survey), value = TRUE)[1]
col_labels <- janitor::make_clean_names(col_labels)

# remove empty or non-relevant rows
survey_clean <- as_tibble(survey) %>%
Expand Down

0 comments on commit 06f124e

Please sign in to comment.