#' RM2C2: Scoring, Summarizing
#' @name get_max_setsize_span
#' @export
get_max_setsize_span <- function(df) {
regexp <- "[[:digit:]]+"
max.mem.item <- df %>%
select(contains("mem")) %>%
gather(variable, value) %>%
mutate(max_items = str_extract(variable, regexp)) %>%
summarise(max = max(max_items))
return(as.numeric(max.mem.item))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.