Last chance! 50% off unlimited learning
Sale ends in
import.q.feedback(q.feedback.dir, q.sorts, q.set, manual.lookup = NULL)
conditions
(such asbeforeandafter), if there is more than one condition.
Conditions are inferred from the specifiedq.sorts
.
import.q.sorts
.build.q.set
.make.cards
) in any of the columns.
Defaults to NULL
in which case items IDs are expecimport.q.sorts
, but with feedback as array cells, rather than Q-sort ranks.TRUE
), as may be the case for privacy reasons or when the feedback is merely a correction of a typographic error.
If no such 3rd column is included, all feedback will be imported. The automatic summary of full item wordings, technically known as hashing, proceeds internally by passing the full item wording to the digest
function of the package algo = crc32, serialize = FALSE
.)
After an (arbitrary) header line, a *.CSV file may look like this:
sta001,"This q-item sounds like r-research to me!",FALSE, indicating that it should not be ignored (FALSE).
If you are not familiar with the terminology of item handle, ID and wording or the file structure expected for import functions, please read the respective sections in the documentation for qmethod-package first or consider the package
import.q.concourse
,
import.q.sorts
,
build.q.set
,
make.cards
,
qmethod
data(importexample)
path.feedback <- paste( # this part is only for the example!
path.package("qmethod"), # just to make sure, use absolute path
# import example files are in root/extdata of package:
"/extdata/importexample/feedback/", # location of sorts
sep = ""
)
q.feedback <- import.q.feedback( # now import the feedback
q.feedback.dir = path.feedback, # add your path here
q.sorts = importexample$q.sorts,
q.set = importexample$q.set, # as produced by build.q.set
manual.lookup = matrix( # ideally empty for automatic hashing, or read in from *.CSV
c("i01","i02","i03","i04"),
ncol = 1,
nrow = 4,
dimnames = list(c("r-dominance","q-uprising","small-village","life-with-q"),"ID")
)
)
Run the code above in your browser using DataLab