get_prop_vec: Calculates the proportion for each mark in a vector.

Description Usage Arguments Value Examples

View source: R/get_prop.R

Description

Assumes that colname has total after _

Usage

1
get_prop_vec(x, total_row)

Arguments

x

column of marks with total in name of vector

Value

vector of proportions.

Examples

1
2
3
4
library(examMarking)
data("SMI_2018_marks")
SMI_2018_marks  <- SMI_2018_marks %>% clean_marks_df("^A")
get_prop_vec(SMI_2018_marks$`Assignment 1 (77417)`, 1)

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