uibkmark: Auxiliary Formatting Functions

View source: R/formatters.R

uibkmarkR Documentation

Auxiliary Formatting Functions

Description

Auxiliary functions for formatting elements of exams.

Usage

uibkmark(x, factor = TRUE)

mchoice2text(
  x,
  true = "\\\\textbf{Richtig}",
  false = "\\\\textbf{Falsch}"
)

Arguments

x

numeric (uibkmark) or logical (mchoice2text) vector.

factor

logical. Should the result be a factor or a character?

true

character. Text for true results.

false

character. Text for false results.

Details

The function uibkmark maps the numbers 1 to 5 to the mark labels SGT1, GUT2, etc. as used by UIBK.

The function mchoice2text masks the exams function of the same name in order to show German text.

Examples

uibkmark(1:5)
mchoice2text(c(TRUE, FALSE))


c403 documentation built on Oct. 20, 2023, 3:01 p.m.