Преглед на файлове

Clean up unused code

master
Garrick Aden-Buie преди 8 години
родител
ревизия
f94df98933
променени са 1 файла, в които са добавени 0 реда и са изтрити 16 реда
  1. +0
    -16
      t4c/app.R

+ 0
- 16
t4c/app.R Целия файл

@@ -19,22 +19,6 @@ possessive_name <- function(x) if (substr(x, nchar(x), nchar(x)) == "s") paste0(
questions <- readxl::read_xlsx(here::here("docs/questions.xlsx")) %>%
arrange(order)

question_itergen <- function(questions) {
force(questions)
i <- 0L
ids <- arrange(questions, order) %>% pull(id)
function() {
i <<- i + 1
if (i > length(ids)) return(NULL)
list(
id = ids[[i]],
question = filter(questions, id == ids[[i]])
)
}
}

next_question <- question_itergen(questions)

plot_swipe_results <- function(questions, results, SWIPES_MEAN) {
n_category <- questions %>% group_by(Category) %>% count()


Loading…
Отказ
Запис