qmethod (version 1.8)

q.fnames: Change factor names in the results of Q methodology analysis

Description

This function replaces the automatic names created in an object of Q method results returned by qmethod.

Usage

q.fnames(results, fnames)

Value

Returns the object results of class QmethodRes, with the new factor names.

Arguments

results

an object of class QmethodRes.

fnames

a vector with the names of the factors. The number of names provided has to match the number of factors extracted in the object results. The names cannot begin with a number. A limit of 50 characters is set, to avoid excessively wide columns. Names should ideally contain no spaces or symbols that are used for other purposes in R (e.g. '-', '+', '/' , ). However '.' are fine.

Author

Aiora Zabala

See Also

qmethod

Examples

Run this code
data(lipset)
results <- qmethod(lipset[[1]], nfactors = 3, rotation = "varimax")
factor.names <- c("good", "bad", "ugly") 
results.renamed <- q.fnames(results, fnames = factor.names)
results.renamed #shows all results

Run the code above in your browser using DataCamp Workspace