This function filters a list of tibbles based on whether a key variable's value is among the membership values. It first uses check_key_vars() to ensure the key variable exists, then checks membership. Useful for keeping only specific students or participants.
Examples
if (FALSE) { # \dontrun{
# Create sample data with student emails
path <- file.path(find.package("tutorial.helpers"), "tests/testthat/fixtures/answers_html")
tibble_list <- gather_submissions(path, "stop")
result <- check_membership(tibble_list,
key_var = "email",
membership = c("bluebird.jack.xu@gmail.com",
"hassan.alisoni007@gmail.com"))
} # }