filter_data_for_session: Filter data for a specific session.

Description Usage Arguments Value Examples

Description

This function is used to filter whitelist entries (users), session events and slide transsionts for a specific ASQ session.

Usage

1
2
filter_data_for_session(session, whitelistentries, sessionevents,
  slide_transitions)

Arguments

session

the session to filter for

whitelistentries

a data.frame with all the whitelistentries

sessionevents

a data.frame with the all the sessionevents

slide_transitions

a data.frame with the all the slide transitions

Value

A list that contains the sessionevents, slide_transitions, slide_transitions_with_ex (slide transitions with exercises), slide_transitions_without_ex (slide transitions without exercises) and the users for the specified session

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
session <- data.frame(id = c("s1"))
session[,1] <- factor(session[,1], levels=c("s1", "s2"))

whitelistentries = data.frame(
  id = c("wl1", "wl2", "wl3", "wl4", "wl5"),
  session = c("s1", "s2", "s1", "s1", "s2"),
  screenName = c("Fernscar Pirate", "Glazebard Dolphin", "Deepmouse Wolverine", "Planetpegasus Eater", "Crazyfalcon Runner"),
  role = c("presenter", "presenter", "viewer", "viewer", "viewer")
)

sessionevents = data.frame(
  session = c("s1", "s1", "s2"),
  type = c("type1", "type2", "type1")
)

slidetransitions = data.frame(
  session = c("s1", "s1", "s1", "s2", "s2"),
  slide = c("slide1", "slide2", "slide3", "slide1", "slide2"),
  hasExercise = c(TRUE, FALSE, TRUE, TRUE, FALSE)
)

filter_data_for_session(session, whitelistentries, sessionevents, slidetransitions)

triglian/asqr documentation built on May 31, 2019, 7:53 p.m.