st_attrib-class {TestDesign} | R Documentation |
Load set/stimulus/passage attributes
Description
loadStAttrib
is a data loading function for creating an st_attrib
object.
loadStAttrib
can read stimulus attributes a data.frame
or a .csv file.
Usage
loadStAttrib(object, item_attrib)
Arguments
object |
set attributes. Can be a |
item_attrib |
an |
Value
loadStAttrib
returns a st_attrib
object.
data
adata.frame
containing stimulus attributes.
See Also
dataset_reading
for examples.
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)
[Package TestDesign version 1.6.1 Index]