Learn R Programming

TestDesign (version 1.0.1)

loadItemPool: Load item paramaters

Description

Read item parameters from a .csv file or a data.frame and create an '>item_pool class.

Usage

loadItemPool(file, ipar = NULL, se_file = NULL)

Arguments

file

File path of a .csv file containing item parameters. The file content should at least include columns 'ID' and 'MODEL'.

ipar

A data.frame containing the item parameters. If supplied, this argument is used over 'file'.

se_file

File path of a .csv file containing standard errors.

Value

An '>item_pool 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)

# }

Run the code above in your browser using DataLab