qmethod (version 1.5.5)

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.

See Also

qmethod

Examples

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

Run the code above in your browser using DataCamp Workspace