# Error: unexpected ',' in "

3 posts / 0 new
Offline
Joined: 12/18/2013 - 16:05
Error: unexpected ',' in "

Hi,

I am getting a bit lost with the following error below. I frequently get it when runnning the specified data matrices. Sometimes the error pops up at different points. As I really cannot see any typos etc. I am starting to get quite annoyed about it.

Does somebody has any suggestions?

I would appreciate it very much!

title = " Factor model Personality traits at 3 timepoints"
> obs = mxData(observed = akkercov, type = 'cov', means = petrmeans, numObs = 290)
> matrixL = mxMatrix(
+ type = 'Full',
+ nrow = 15,
+ ncol = 3,
+ free = (TRUE,FALSE,FALSE,
Error: unexpected ',' in:
" ncol = 3,
free = (TRUE,"

Offline
Joined: 07/31/2009 - 14:25
c

you're saying (T,T) instead of c(T,T)

hence

Error: unexpected ',' in:
" ncol = 3,
free = (TRUE,"
Offline
Joined: 12/18/2013 - 16:05
Hmhm! Thanks a lot!.I'll see

Hmhm! Thanks a lot!.
I'll see it now. This is quite a sloppy mistake, indeed.