You are here

Error: The name....is illegal because it contains multiple '.' characters...

5 posts / 0 new
Last post
adstaple's picture
Offline
Joined: 01/06/2010 - 19:29
Error: The name....is illegal because it contains multiple '.' characters...

I am trying the following (see code below) and getting this error:

Error: The name 'mPA', 'mPA', 'mPA', 'mPA', 'mPA', 'mPA', 'mPA', 'mPA', 'mPA', and 'mPA' is illegal because it contains multiple '.' characters in mxMatrix("Full", nrow = 1, ncol = numManifest, values = 0.05, free = TRUE, dimnames = list(NULL, manifests), name = c(rep("mPA", embedD), rep("mPA", embedD)))

What am I missing? As far as I can tell, the names do not have any punctuation symbols in them.
~ Angela

numManifest manifests embedD

mxMatrix("Full", nrow=1,ncol=numManifest,
values=.05,
free=TRUE,
dimnames = list(NULL,manifests),
name=c(rep("mPA",embedD),rep("mPA",embedD))
)

adstaple's picture
Offline
Joined: 01/06/2010 - 19:29
correction, the name=

correction, the name= statement should read

name=c(rep("mPA",embedD),rep("mPS",embedD))

full corrected statement

mxMatrix("Full", nrow=1,ncol=numManifest,
values=.05,
free=TRUE,
dimnames = list(NULL,manifests),
name=c(rep("mPA",embedD),rep("mPS",embedD))
)

mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
Oops. I think you meant to

Oops. I think you meant to type "labels=" instead of "name=". But it looks like we have a bug where mxMatrix() is doing the wrong thing when the length of the 'name' argument is greater than 1. I'll fix that.

adstaple's picture
Offline
Joined: 01/06/2010 - 19:29
Thanks. I think we were

Thanks. I think we were typing at the same time...

adstaple's picture
Offline
Joined: 01/06/2010 - 19:29
Ah, never mind. I was

Ah, never mind. I was confusing 'labels' and 'name' in mxMatrix(). Perhaps an error message that indicated the matrix can only be assigned one name would be informative.

Log in or register to post comments