olat_eval_guess_lang: Guess language of the OLAT results file

View source: R/olat_eval.R

olat_eval_guess_langR Documentation

Guess language of the OLAT results file

Description

Given a set of character vectors this function tries to gess the language of the imported file. This allows to evaluate exams from OpenOLAT in different languages. Used by olat_eval to rename the columns to make the evaluation independent from the language used when exporting the results via OLAT.

Usage

olat_eval_guess_lang(x)

Arguments

x

character vector with column names

Value

Returns the language name ("en", "de") if the function is able to guess the language. Else the script will stop.

Author(s)

Reto


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