scoreGrade: Convert alphabetical grades to numeric

Description Usage Arguments

Description

This function takes vectors of year and raw grades in a subject and converts it into a number between 0 and 20 according to the official scoring table by Skolverket.

Usage

1
2
3
4
5
6
scoreSubjects(object, year, ...)

## S4 method for signature 'NSR,vector'
scoreSubjects(object, year, ...)

scoreGrade(grade, year)

Arguments

object

An object of class NSR

year

A vector of graduation years for the corrsponding grade.

...

Grades to score.

grade

A vector of grades (e.g., A, E, VG, F)


deepchocolate/pseregs documentation built on Dec. 27, 2021, 11:11 p.m.