(Internal) Sanitize item model names for C++ functions
sanitizeModel
is an internal function for sanitizing item model names to be passed onto C++ functions.
sanitizeModel(model)
model
: a vector containing item model names.sanitizeModel
returns a numeric vector, with
item_1PL
converted to 1
item_2PL
converted to 2
item_3PL
converted to 3
item_PC
converted to 4
item_GPC
converted to 5
item_GR
converted to 6