Skip to content

Instantly share code, notes, and snippets.

@dgkeyes
Created May 13, 2022 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkeyes/62ede332d359225dd3789a25b2ec83de to your computer and use it in GitHub Desktop.
Save dgkeyes/62ede332d359225dd3789a25b2ec83de to your computer and use it in GitHub Desktop.
library(tidyverse)
library(readxl)
library(janitor)
library(unheadr)
qualtrics_data_raw <- read_excel("data/qualtrics-data.xlsx",
skip = 1) %>%
clean_names()
qualtrics_tidy <- qualtrics_data_raw %>%
separate_rows(select_all_the_things_youve_done_in_the_past_24hours_selected_choice,
sep = ",")
qualtrics_tidy %>%
count(select_all_the_things_youve_done_in_the_past_24hours_selected_choice) %>%
ggplot(aes(x = n,
y = select_all_the_things_youve_done_in_the_past_24hours_selected_choice)) +
geom_col()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment