factorize: Perform factor analysis and get useful output using quosures

Description Usage Arguments Value

View source: R/investigating.r

Description

This function creates a composite variable of a group of individual items in your data frame.

Usage

1
factorize(data, vector, factors = 1, rotation = "varimax")

Arguments

data

data frame

vector

quosure of items to analyze

factors

the number of factors to fit

rotation

Type of rotation; drawing from rotation options in the 'psych' package's factanal function.

Value

factor analysis output and scree plot


crbwin/clnR documentation built on Oct. 29, 2020, 1:55 a.m.