Learn R Programming

qmethod (version 1.2.2)

import.pqmethod: Q methodology: import PQMethod *.DAT files

Description

Imports data from *.DAT files created in PQMethod software.

Usage

import.pqmethod(file, ...)

Arguments

file
a file with extension *.DAT (see full description of the file below in References).
...
further arguments to be passed to read.table and read.fwf.

Details

Extracts the raw data of a Q methodology study from the native format used in PQMethod. Returns a data frame with statements as rows and Q-sorts as columns.

If the following error occurs: "invalid multibyte string", a possible solution is to either set the right file encoding with the argument fileEncoding or inspect the file for uncommon characters (see details in read.table).

References

Schmolck, Peter, 2014. PQMethod Software, Available at: http://schmolck.org/qmethod/

File descriptions in PQMethod Manual: http://schmolck.org/qmethod/pqmanual.htm#appdxa

Examples

Run this code
data(lipset)
results <- qmethod(lipset[[1]], nfactors=3, rotation="varimax")
export.qm(results, "lipset_R.txt")
export.qm(results, "lipset_PQMethod.txt", style="PQMethod")

Run the code above in your browser using DataLab