Re: [R] accessing the ellements in an array and factors.

2015-06-12 Thread Jim Lemon
Hi Bogdan, I seem to be able to do it like this: xxx <-array(0, dim=4) dimnames(xxx) = list(list_triplet_wells) xxx A1:A2:A3 A4:A5:A6 A7:A8:A9 A10:A11:A12 0 0 0 0 yyy<-factor(c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", "A10:A11:A12")) yyy [1] A1:A2:A3

Re: [R] accessing the ellements in an array and factors.

2015-06-12 Thread Bogdan Tanasa
Thanks Jim ! also found a second way to do by using as.character() eg : as.character(yyy). On Fri, Jun 12, 2015 at 3:06 AM, Jim Lemon wrote: > Hi Bogdan, > I seem to be able to do it like this: > > xxx <-array(0, dim=4) > dimnames(xxx) = list(list_triplet_wells) > xxx >A1:A2:A3 A4:A5:A6

Re: [R] accessing the ellements in an array and factors.

2015-06-11 Thread David Winsemius
Cross-posting to SO and Rhelp is deprecated. On Jun 11, 2015, at 8:40 PM, Bogdan Tanasa wrote: > Dear all, > > please could you please with a simple question : I do have an array of 32 > elements, where each element is indexed by a name : eg : > > list_triplet_wells <-c("A1:A2:A3", "A4:A5:A6 ",

[R] accessing the ellements in an array and factors.

2015-06-11 Thread Bogdan Tanasa
Dear all, please could you please with a simple question : I do have an array of 32 elements, where each element is indexed by a name : eg : list_triplet_wells <-c("A1:A2:A3", "A4:A5:A6 ", "A7:A8:A9", "A10:A11:A12 ") xxx <-array(0, dim=4) dimnames(xxx) = list(list_triplet_wells) >From another