Q methodology: produce printable cards for Q study with ID and full item wording
Creates cards for administering a Q study. Full item wordings are printed on the front of business cards and item IDs on the back.
1 2 3 4 5 6 7 8 9 10
A matrix with handles as row names ("
A character vector of length 1.
Must be one of the languages from the column names in the specified
A character vector of length 1, choosing among available templates of business card sheets.
Defaults to the only currently available
A matrix with handles (same as in
A character vector of length 1 to set the font size of the full item wording on the cards.
A character vector of length 1 to set the filename without file extension.
A character vector of length 1 to set the babel language for appropriate hyphenation, special letters and other international support as provided by the babel LaTeX package.
Only available babel options are permissible.
Preparing cards with full items and IDs quickly becomes cumbersome if a study is done several times or if items change frequently. Participants require well-printed, well-designed cards for their sorting task, ideally on heavier paper. Cards should include shorthand, unique identifiers to simplify later data entry.
This function prepares a properly typeset *.PDF (or *.TEX source), where items are printed on readily-available business card templates, from which individual cards can be easily broken out.
The function prints the full item wording on the right column of any page, and the identifier (ID) on the left column. If templates are duplex printed with the same page on the front and back, and in proper orientation, the front of each card includes the full wording, and the back its unique identifier (ID).
Identifiers (ID) entered manually or automatically hashed from full wordings are also expected in the import functions
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.)
The function proceeds internally by preparing a dataframe with full item wordings and identifiers (ID), and then invokes a prepared
*.RNW template included with this package, which in turn includes a knitr chunk, which in turn calls xtable to return a neatly layed-out multi-page table.
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 wiki
Writes a *.PDF file or its source *.TEX file to the working directory ready for printout.
Hashed identification has not been widely tested in Q studies and should be used with great care and only for extra convenience. When using hash identification, researchers should be careful to record the precise item wordings at the time of hashing for the printed Q-cards, preferably with a version control system. Researchers should also record the complete Q-sorts of participants in an unhashed form, such as a picture of the completed sort in full wordings, in case problems with the hashing arise.
output.pdf = TRUE, the function will sometimes fail with the error message
"Running 'texi2dvi' on ... failed".
This is not a bug with the function, but simply indicates that the path to pdflatex is not available in the current R environment.
To fix this issue, compile the resulting *.TEX manually, use RStudio or try this fix.
You can also report other suggestions here.
This function does not automatically scale the font size to fit the given card size.
Instead, users will have to proceed by trial and error, using a
wording.font.size that works for their longest item.
The default value should work for most Q items.
This function currently only works for Avery Zweckform C32010 templates, designed in
If you would like support for other templates, check out / chip in here: https://github.com/aiorazabala/qmethod/issues/34.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.