I am working with a dataset, which I firstly converted from long to wide, because I need the rows (variables) to be columns:
I used:
library(tidyr)
cfa_model<-pivot_wider(cfa_data, names_from= variable, values_from = value)
and got:
I need this data to be as a dataframe, having 48 rows and 65 columns, not every column has the same length and I don't know if this is a problem, for the case when I got less observations a NA would be just fine. The problem when covnerting to dataframe is that I got the values as a list all 48 rows in 1, I need each column to be as a normal data frame numeric variable.
Do you guys know how to fix this?
Thanks a lot! :)