Learn R Programming

TestDesign (version 1.0.1)

loadItemAttrib: Load item attributes

Description

Read item attributes from specified file.

Usage

loadItemAttrib(file, pool)

Arguments

file

Character. The name of the file containing item attributes.

pool

An '>item_pool object. Use loadItemPool for this.

Value

An '>item_attrib object.

See Also

dataset_science for example usage.

Examples

Run this code
# NOT RUN {
## Write to tempdir() and clean afterwards
f <- file.path(tempdir(), "itempool_science.csv")
write.csv(itempool_science_raw, f, row.names = FALSE)
itempool_science <- loadItemPool(f)
file.remove(f)

f <- file.path(tempdir(), "itemattrib_science.csv")
write.csv(itemattrib_science_raw, f, row.names = FALSE)
itemattrib_science <- loadItemAttrib(f, itempool_science)
file.remove(f)

# }

Run the code above in your browser using DataLab