View source: R/import.q.concourse.R
import.q.concourse | R Documentation |
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)
q.concourse.dir |
A directory of individual item wordings in *.TEX files with handles as filenames (e.g. happy-feeling.tex).
If |
languages |
A character vector of languages, same as folders within |
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 website.
Returns a character matrix with handles as row names, languages (if applicable) as columns and full item wording per language in cells.
Maximilian Held
build.q.set
,
import.q.feedback
,
import.q.sorts
,
make.cards
## 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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.