Skip to content

Instantly share code, notes, and snippets.

@BroVic
Last active May 18, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BroVic/9ac62418b1ebc4cc1e5152dbd11b1347 to your computer and use it in GitHub Desktop.
Save BroVic/9ac62418b1ebc4cc1e5152dbd11b1347 to your computer and use it in GitHub Desktop.
Trimming EventBrite data to suit local purpose
library(here)
suppressPackageStartupMessages(library(dplyr))
ourDir <- file.path(here(), "events/StatesmanSeries/data")
ebriteCsv <- file.path(ourDir, "SOGP_Eventbrite Reg.csv")
eBrite <- read.csv(ebriteCsv, stringsAsFactors = FALSE)
vars <- colnames(eBrite)
dat <- eBrite %>%
select(c(Date, Tickets, First.Name, Last.Name, Email.Address))
write.csv(dat,
file = file.path(ourDir, "online_reg.csv"),
na = "",
row.names = FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment