[R] diagonal matrix, array attributes and how to keep from setting an attribute on "NULL"

2012-08-24 Thread aleksandr russell
Hello, I've put the short version here and if anyone wants to run the code with CollocInfer, I've given the full version in the file "analysis". I come at the question of array attributes and dimnames to try to simplify. In a CollocInfer LS.profile analysis using this array 'Y' constructed as

[R] dimnames in an array(I'll be grateful if this message will be passed to all list users)

2012-08-13 Thread aleksandr russell
Hello, I'm hoping someone with a wide experience with R may be able to see what the program is trying to tell me. I've got an array: y1=rnorm(41,0.2) y2=rnorm(41,0.2) y3=rbind(y1,y2) data11<-array(0,c(41,2,2)) data11[,1,]=y3 data11[,2,]=y3 rownames(data11)<-rownames(data11, do.NULL = FALSE, p

Re: [R] dimnames in array

2012-08-08 Thread aleksandr russell
m getting an error "could not find function paste0" Maybe you're using R later than 2.41? thanks, Alexander On Wed, Aug 8, 2012 at 10:52 AM, David Winsemius wrote: > > On Aug 8, 2012, at 3:19 AM, aleksandr russell wrote: > >> Hello, >> >> I'

[R] dimnames in array

2012-08-08 Thread aleksandr russell
Hello, I'm working with an array; I'm trying to make it so that an array of dim(42,2,2) has names whose length corresponds to that of the array, and am hoping someone with experience with this can see what I'm not doing correctly: data11 = array(0,c(41,2,2)) y = lsoda(x0,times,fhn$fn.ode,pars