Error in nrow(R) : object 'mycor' not found

224 views
Skip to first unread message

Nora Bradford

unread,
Jan 24, 2022, 3:29:05 PM1/24/22
to lavaan
Hi all, 
I'm relatively new to coding so this may be a simple error. I'm doing a CFA and have used this exact code before without error, so I'm not sure what's wrong. 

This is the error I get right after doing fit <- cfa(model, data=df): 
Error in nrow(R) : object 'mycor' not found

Any advice?

thanks!
Nora

Jasper Bogaert

unread,
Jan 25, 2022, 2:47:05 AM1/25/22
to lavaan
Hi Nora

Your line of code looks fine. I googled the error and found this: https://stackoverflow.com/questions/57036060/error-in-nrowx-object-x-not-found-but-it-gets-defined

The problem might be that your object 'mycor' is not defined yet (in the space where you are working at that line of code). If not, please share some more of your code and I will try to take a look.

Best wishes

Jasper Bogaert

---------------------

PhD student and teaching assistant
Department of Data Analysis (PP01)
Faculty of Psychology and Educational Sciences
Ghent University



Op maandag 24 januari 2022 om 21:29:05 UTC+1 schreef nbra...@broadinstitute.org:
Reply all
Reply to author
Forward
0 new messages