read_skill_assignment_csv: Read an assignment of taught and required skills for a set of...

View source: R/read_skll_assignments_csv.R

read_skill_assignment_csvR Documentation

Read an assignment of taught and required skills for a set of learning objects from CSV-files.

Description

read_skill_assignment expects two CSV-files with two columns each. The first column contains the IDs of learning objects and the second row the IDs of single skills required or taught, respectively, by this learning object. It returns a list of two binary matrices, "taught" and "required". Each matrix has one row per learning object and one column per skill. The cells contain a "1" if the skill is taught or required, respectively, by the learning object and a "0" otherwise,

Usage

read_skill_assignment_csv(
  taught,
  required,
  header = TRUE,
  sep = ",",
  dec = ".",
  warnonly = FALSE,
  verbose = TRUE
)

Arguments

taught

CSV-file with assignments of taught competencies to learning objects

required

CSV-file with assignments of required competencies to learning objects

header

Boolean specifying whether the CSV-files contain a header line (default = TRUE)

sep

Column separator (default ",")

dec

Decimal point character (default ".")

warnonly

Are non-compliant SAs allowed? (default = FALSE)

verbose

Verbosity of compliance test (default = TRUE)

Value

List of two binary matrices, "taught" and "required".

See Also

Other functions reading skill assignments: read_skill_assignment_ods(), read_skill_assignment_xlsx()


CDSS documentation built on Oct. 9, 2023, 1:06 a.m.