get_total: takes data frame and regular expression and calculates the...

Description Usage Arguments Value Examples

View source: R/get_total.R

Description

takes data frame and regular expression and calculates the totals for the given columns

Usage

1

Arguments

df

data frame of marks

RE

regular expression to choose columns to total

Value

vector of totals

Examples

1
2
3
library(examMarking)
data("SMI_2018_marks")
SMI_2018_marks$ET  <- SMI_2018_marks %>% get_total("^Q")

jonotuke/examMarking documentation built on Nov. 26, 2019, 3:48 p.m.