Load set/stimulus/passage attributes
loadStAttrib is a data loading function to create an st_attrib object.
loadStAttrib can read stimulus attributes a data.frame or a .csv file.
loadStAttrib(object, item_attrib, file = NULL)
object |
set attributes. Can be a |
item_attrib |
an |
file |
(deprecated) use |
loadStAttrib returns a st_attrib object.
data a data.frame containing stimulus attributes.
dataset_reading for examples.
## Read from data.frame: itempool_reading <- loadItemPool(itempool_reading_data) itemattrib_reading <- loadItemAttrib(itemattrib_reading_data, itempool_reading) stimattrib_reading <- loadStAttrib(stimattrib_reading_data, itemattrib_reading) ## Read from file: write to tempdir() for illustration and clean afterwards f <- file.path(tempdir(), "stimattrib_reading.csv") write.csv(stimattrib_reading_data, f, row.names = FALSE) stimattrib_reading <- loadStAttrib(f, itemattrib_reading) file.remove(f) ## TestDesign 1.1.0 - Deprecated arguments ## Not run: loadStAttrib(object = "satt.csv", item_attrib) # is equivalent to loadStAttrib(file = "satt.csv", item_attrib) # pre 1.1.0 ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.