Przeglądaj źródła

Clean up unused code

master
Garrick Aden-Buie 8 lat temu
rodzic
commit
f94df98933
1 zmienionych plików z 0 dodań i 16 usunięć
  1. +0
    -16
      t4c/app.R

+ 0
- 16
t4c/app.R Wyświetl plik

questions <- readxl::read_xlsx(here::here("docs/questions.xlsx")) %>% questions <- readxl::read_xlsx(here::here("docs/questions.xlsx")) %>%
arrange(order) 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) { plot_swipe_results <- function(questions, results, SWIPES_MEAN) {
n_category <- questions %>% group_by(Category) %>% count() n_category <- questions %>% group_by(Category) %>% count()



Ładowanie…
Anuluj
Zapisz