Skip to content

Commit

Permalink
fix: don't need to rename, can use contains instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Mar 15, 2024
1 parent 455add8 commit c4957d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/create-teams.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ assign_learners_to_groups <- function(data, group_names, score_cutoff = 3) {
data %>%
dplyr::select(
full_name,
tidyselect::any_of("github_username"),
tidyselect::contains("github"),
tidyselect::matches("^perceived")
) %>%
dplyr::rowwise() %>%
Expand All @@ -124,7 +124,7 @@ assign_learners_to_groups <- function(data, group_names, score_cutoff = 3) {
dplyr::select(
team,
full_name,
tidyselect::any_of("github_username"),
tidyselect::contains("github"),
perceived_skill_score
) %>%
dplyr::arrange(team, perceived_skill_score)
Expand Down
6 changes: 0 additions & 6 deletions R/get-precourse-survey.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,12 @@ tidy_precourse <- function(data, metadata_dates) {
~ purrr::map_chr(.x, as.character)
)) |>
dplyr::rename_with(snakecase::to_snake_case) |>
dplyr::rename(github_username = what_is_your_git_hub_user_name,
email = email_address) |>
dplyr::mutate(
course_version = assign_course_version_by_date(timestamp, metadata_dates)
) |>
dplyr::mutate(dplyr::across(
tidyselect::contains("_perceive_your_skill_"),
tidy_cols_skills
)) |>
dplyr::mutate(dplyr::across(
tidyselect::matches("^github_username$"),
~ stringr::str_remove(.x, pattern = "\\@")
))
}

Expand Down

0 comments on commit c4957d8

Please sign in to comment.