Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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.

Value

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

Author(s)

Aiora Zabala

See Also

Examples

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

qmethod

Analysis of Subjective Perspectives Using Q Methodology

v1.8
GPL (>= 2)
Authors
Aiora Zabala [aut, cre] (Main author, <https://orcid.org/0000-0001-8534-3325>), Maximilian Held [aut] (Author of additional data management functions), Frans Hermans [aut] (Author of centroid extraction function)
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.