On 5/25/2007 7:27 AM, Vladimir Eremeev wrote: > Thank you for the answer. > > Here is everything. > > ac9wl<-c(412,440,488,510,532,555,650,676,715) > ac9nw<-length(ac9wl) > > AB2C <-function(a,b,model.type="S") { > nza<-dim(a)[1] > nwa<-dim(a)[2] > nzb<-dim(b)[1] > nwb<-dim(b)[2] > > if(nza!=nzb || nwa!=ac9nw || nwb!=ac9nw) { > warning('AB2C: Dimensions of the input matrices are invalid') > return(NULL); > } > > [ further calculations, they do not use ac9nw ] > }
That would work, so my guess is that you aren't using that function. If you have a function named AB2C in your global environment, R will find it before this one, and it may not be able to see the ac9nw variable. Duncan Murdoch ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel