Last active
May 18, 2020 20:06
-
-
Save BroVic/9ac62418b1ebc4cc1e5152dbd11b1347 to your computer and use it in GitHub Desktop.
Trimming EventBrite data to suit local purpose
This file contains 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
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