Hi,
When running the factanal function in the R tool and in R Studio I get completely different outputs.
The code I am running in Alteryx:
variables <- read.Alteryx("variables", mode="data.frame")
factormodel <- factanal(variables, factors=3, scores='regression', rotation='none')
x <- factormodel$scoresI am running it on the same dataset consisting of 8 normalised variables, and before using the function in the R tool I am making sure to explicitly convert these to floats, so I doubt it is a data type issue. I have attached extracts from the outputs.
Does anyone know what I am doing wrong in Alteryx?
Many thanks!
-Edit: I should probably add the format of my outputs:
RStudio: dataframe with dimensions: [Length_of_dataframe] x 3 --> what you would expect
R Tool: dataframe with dimensions: 1 x (3*[Length_of_dataframe]) --> for some reason it concatenated the results into one row vector