Re: [R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread Duncan Murdoch
On 12-07-01 12:01 PM, mlell08 wrote: After all, it seems a bit unlogical to me, because 1) c(a=2, b=3)$a works as expected I'm curious about this: I get an error. I expected an error, so it worked as expected for me, but I think from the context that I deleted that you didn't expect one.

Re: [R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread Jeff Newmiller
And when you get tired of waiting for your elegant solution to finish, you can go back and convert to vectors or 3d arrays. Lists are good for building structures, but not particularly good for computation. --- Jeff Newmille

[R] [SOLVED] Accessing named members of a list in an array

2012-07-01 Thread mlell08
> > You thought wrong (on two accounts as it happens). The "$" methods > translate to "[[" with a quoted argument and there is no > matrix/array equivalent since vectors loose their names (if they > had any to begin with) when they are put into a matrix or array. > The equivalent method to x$a i