-attendance.days <- data.frame(discord.name=names(days.tbl),
- days.present=days.tbl,
- days.absent=length(list.files(".", pattern="^attendance-.*tsv$"))-days.tbl)
+## set anything that's missing to zero
+d$num.calls[is.na(d$num.calls)] <- 0
+d$absences[is.na(d$absences)] <- 0
+
+################################################
+## list people who have been absent often or called on a lot
+################################################
+
+
+## list students sorted in terms of (a) absences and (b) prev questions
+d[sort.list(d$absences),]
+
+d[sort.list(d$num.calls, decreasing=TRUE),]