Skip to content

Commit

Permalink
fix: this had some typos and unneeded columns
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Apr 21, 2024
1 parent 110f6f9 commit deebb6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/extract-feedback-types.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ extract_feedback_quantitative <- function(data) {
statement = stringr::str_remove(question, "Please .* course. ") %>%
stringr::str_remove_all("\\[|\\]")
) %>%
dplyr::count(course_id, course_date, date, response, statement) |>
dplyr::arrange(course_id, course_date, date)
dplyr::count(course_id, course_date, statement, response) |>
dplyr::arrange(course_id, course_date)
}

#' @describeIn extract_feedback Extract and tidy up the overall comments
Expand All @@ -45,10 +45,10 @@ extract_feedback_overall <- function(data) {
session_name %in% c("Day 3", "End of course"),
stringr::str_detect(
question,
".*any other (general )?comments or feedback.*"
".*any other (general )?(comments or feedback|feedback or comments).*"
)
) %>%
dplyr::select(-question, -session_name) %>%
dplyr::select(-question, -session_name, -dplyr::contains("course_name")) %>%
dplyr::filter(stringr::str_detect(
response,
"^No$",
Expand Down

0 comments on commit deebb6d

Please sign in to comment.