researchdatapod.com
How to Solve R Error: Invalid type (list) for variable
This error occurs when you try to fit a model, and one or more of the variables is a list instead of a vector. You can solve this error by converting the list to a vector using the unlist() functio…