This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use these functions to make smart guesses for Wordle (https://www.powerlanguage.co.uk/wordle/) | |
# find_word() returns words that satisfies the wordle feedback. Start with `possible_words`, i.e., all 5-letter english words. | |
# next_word() returns words that are most likely to result in green letters. | |
# | |
# A pretty good strategy on the next_word() output is to use "pathfinder" for the first two words and "guess" thereafter, picking the first commonly-known word. | |
############# | |
# FUNCTIONS # | |
############# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' dplyr::mutate, but with a progress bar for grouped data | |
#' | |
#' @aliases mutate_progress | |
#' @export | |
#' @inheritParams dplyr::mutate | |
#' @param .prefix Text to show before the progress bar. | |
#' @param .format Format for the progress bar. See documentation in \code{\link[progress]{progress_bar}}. | |
#' - ":what" identifies the current group. | |
#' - ":total" is the total number of groups. | |
#' - ":current" is the current group number. |