m: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bert Gunter
Sent: Monday, December 1, 2014 11:46 AM
To: Tim Richter-Heitmann
Cc: r-help@r-project.org
Subject: Re: [R] Creating submatrices from a dataframe, depending on factors in
sample names
I do not have the patience to study your
I do not have the patience to study your request carefully, but does
the following help?
> a <- 1:3
> x <- outer(a,a,paste,sep=".")
> x
[,1] [,2] [,3]
[1,] "1.1" "1.2" "1.3"
[2,] "2.1" "2.2" "2.3"
[3,] "3.1" "3.2" "3.3"
> x[upper.tri(x)]
[1] "1.2" "1.3" "2.3"
> x[upper.tri(x,diag=TRUE)]
[1
Hello there,
this is a cross-post of a stack-overflow question, which wasnt answered,
but is very important for my work. Apologies for breaking any rules, but
i do hope for some help from the list instead:
I have a huge matrix of pairwise similarity percentages between
different samples. The
3 matches
Mail list logo