Skip to content

Commit f81f09f

Browse files
author
Phillip Doehle
committed
Update steps with scripts
1 parent 3a61d05 commit f81f09f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

paste_attendees.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Name: paste_attendees.sh
2+
# Usage: paste_attendees.sh [cleaned attendee .csv file]
3+
# Description: Make a list from the cleaned registrants
4+
# file for the Google forms attendance form.
5+
6+
cat "$1" | cut -d, -f2,3 | tail -n +2 | sed "s/\,/\ /g" | sort

take_attend.R

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
library("tidyverse")
2+
library("stringr")
3+
4+
# Attendee reports
5+
attendees <- read_csv("./2018-01-08.csv")
6+
7+
# Import daily attendance files
8+
att_days <- c("./2018-01-08_attendance.csv", "./2018-01-09_attendance.csv")
9+
daily_att <- lapply(att_days, read_csv)
10+
daily_att <- daily_att %>%
11+
lapply(function(x) unique(x$Name))
12+
13+
# Check whether or not a participant
14+
# was present on a given day
15+
# and add the respective attendance column
16+
attendees <- attendees %>%
17+
mutate(full_name = paste(first, last, sep = " "))
18+
19+
20+
#attendees <- attendees %>%
21+
# mutate("2018-01-09_attendance" = ifelse(full_name %in% day02, T, F))

0 commit comments

Comments
 (0)