Skip to content

Commit

Permalink
Updated how commitments are score in get_urgency() to avoid they ar…
Browse files Browse the repository at this point in the history
…e double counted when combined with others (e.g. "we must have").
  • Loading branch information
henriquesposito committed Aug 26, 2024
1 parent 174665e commit 0a4bf10
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions R/urgency.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ get_urgency <- function(.data, summarise = "sum") {
# check if priorities and get correct scale and data
if (isTRUE(priority)) { # for urgency in priorities
out <- dplyr::rename(out, scale = rescaled) %>%
dplyr::mutate(word = ifelse(grammar_function == "verb",
stringr::str_remove_all(word, " to$"),
word)) %>% # to is not necessary because of how we select priorities
dplyr::select(word, scale)
} else out <- dplyr::rename(out, scale = scaled) %>% dplyr::select(word, scale)
# remove missing and group words
Expand Down

0 comments on commit 0a4bf10

Please sign in to comment.