$<-,Itempool-method | R Documentation |
Set values to parameters or components of 'Itempool' class.
## S4 replacement method for signature 'Itempool' x$name <- value
x |
|
name |
Name of the parameter or component. Currently only |
value |
The new value that will be assigned.
|
This operation will return an Itempool-class
object.
Emre Gonulates
ip <- generate_ip(model = "3PL", n = 5) ip$a # Set new values for the a parameters ip$a <- 2 # Set new values for the b parameters ip$b <- -2:2 # Set new ids ip$item_id <- paste0("my-item-", 5:9) # Set new item content ip$content <- c("Geometry", "Algebra", "Algebra", "Geometry", "Geometry") # Add misc field to all items: ip$difficulty <- c("Easy", "Easy", "Hard", "Hard", "Hard") ip$difficulty # Add an overall misc field to itempool: ip$form_name <- "Frm8" # Remove the misc field from all items ip$difficulty <- NULL ip$difficulty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.