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
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
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 ",
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
4 matches
Mail list logo