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

View source: R/q.fnames.R

q.fnamesR Documentation

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

qmethod

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

aiorazabala/qmethod documentation built on Nov. 23, 2023, 1:25 a.m.