View source: R/export.pqmethod.R
export.pqmethod | R Documentation |
Exports Q data to *.DAT and *.STA files readable in PQMethod software.
export.pqmethod(dataset, study.name,
study.description, col.range,
filename='Q_data_forPQmethod',
left.zeros, right.zeros, statements)
dataset |
a matrix or data frame qwith Q data: Q-sorts as columns and statements as rows. The names of the columns will be used as Q-sort IDs in the *.DAT file. |
study.name |
a string with a short name of the study. No space characters are allowed. |
study.description |
a string with a one-sentence description of the study). |
col.range |
a two-element numerical vector with the values at the two extremes of the Q distribution (e.g. |
filename |
a filename. The extension *.DAT is added automatically). |
left.zeros |
number of zeros before the distribution, in the second line of *.DAT file. |
right.zeros |
number of zeros after the distribution, in the second line of *.DAT file). |
statements |
a matrix with statements, one in each row). |
Exports the raw data of a Q methodology study into the native format used in PQMethod. Returns a message with some basic information about the data.
Note that no checks are made on the data, such as whether there are duplicated or non-forced Q-sorts.
This function is not applicable to non-forced distributions.
This function is experimental. Use with caution and verify that the output is as desired.
Aiora Zabala
Schmolck, Peter, 2014. PQMethod Software, Available at: http://schmolck.org/qmethod/
File descriptions in PQMethod Manual: http://schmolck.org/qmethod/pqmanual.htm#appdxa
# data(lipset)
# db <- lipset[[1]]
# export.pqmethod(dataset = db,
# study.name = 'mystudy',
# study.description = 'great study',
# col.range = c(-4, 4),
# filename = 'mystudy',
# statements=lipset[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.