qmethod (version 1.5.5)

import.q.concourse: Q methodology: import concourse of Q items


Imports a full set of items (statements in a concourse) from a directory of *.TEX files (one file per item), including possible translations in separate folders.


import.q.concourse(q.concourse.dir, languages = NULL)



A directory of individual item wordings in *.TEX files with handles as filenames (e.g. happy-feeling.tex). If languages are specified, the directory should contain one folder per language, with all full item wordings as individual *.TEX files in each language folder. Items should have the same file name across all languages (e.g. happy-feeling.tex). Directories end with a trailing slash, such as study/q-sample/q-concourse/.


A character vector of languages, same as folders within q.concourse.dir. If the concourse is monolingual, leave empty. Defaults to NULL.


Returns a character matrix with handles as row names, languages (if applicable) as columns and full item wording per language in cells.


Q studies are conducted by asking participants (or a P set) to rank order a sample (or Q Set) of items, drawn from a universe (or concourse) of items, based on some sampling strategy. A concourse is, simply put, the sum of all things people could say about a subject matter.

It is helpful to keep the entire concourse readily available, so as to draw samples from it.

For some studies, it is necessary to have the complete items available in several languages.

This function simply imports all full item wordings and assigns a handle for the item, based on the filename (see qmethod-package). These filenames should be short and meaningful to the researcher.

Individual items as *.TEX files should include minimal markup, and no trailing whitespace or empty newlines. If you do not need any additional formatting, you can just save plain text files (*.TXT) with the extension *.TEX. There is no need to know LaTeX.

Returns error if items are not available in all translations.

Defaults to monolingual variant.

If you are not familiar with the terminology of Q 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.

See Also

build.q.set, import.q.feedback, import.q.sorts, make.cards


Run this code
## Import a full q concourse from 'importexample' dataset
path.concourse <- 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/sample/concourse/",  # location of concourse
  sep = ""
q.concourse <- import.q.concourse(  # import concourse
  q.concourse.dir = path.concourse, # insert your applicable path here
  languages = c("english","german") # choose your languages from path here

# }

Run the code above in your browser using DataCamp Workspace