This function imports Q-sorts from their raw format stored in *.CSV files, in the form in which they were sorted by participants (applicable to Q-sorts with forced distributions only). Q-sorts in their raw form have columns as ranks (from, say, -6
to +6
) with cards (items) sorted in rows.
The vertical dimension of Q-sorts is meaningless.
Q-sorts are conveniently entered as *.CSV (comma separated values) files in standard spreadsheet editors.
This function ignores any rows in the files below the maximum height of columns expected from q.distribution
.
It is recommended that Q-sort data are kept in their rawest form, with clear documentation of any processing applied to this data.
This is also good practice for reproducible research.
Q-sorts are best entered not by typing up the full form of an item, but some unique string (ID) printed on the card.
This function, and, analogously, make.cards
and import.q.feedback
offer a manual and automatic way to create these IDs, which are then expected as input (see qmethod-package for details).
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 digest (with arguments set to algo = crc32, serialize = FALSE
.)
Q-sorts are conveniently entered as *.CSV (comma separated values) files in standard spreadsheet editors.
This function includes a number of tests to verify the integrity of entered Q-sorts:
manual.lookup
tables provided are tested for duplicate identifiers.- Function returns a warning if some participants do not have Q-sort files under all conditions (applies only if there are more than one
conditions
). - Function errors out if there are item IDs in a Q-sort not matched by any manually or automatically specified ID, respectively (see
qmethod-package
for details). - Function errors out if the distribution in a given Q-sort does not conform to the defined
q.distribution
. - Function errors out if there are items in the sample
q.set
that cannot be found in any given Q-sort. - Function errors out if there are items in a given Q-sort that cannot be found in the sample
q.set
.
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 https://github.com/aiorazabala/qmethod/wiki/Data-management{wiki}