Hi Lucia, On Mon, Jun 18, 2012 at 6:11 PM, lucinka <lucia.bohus...@gmail.com> wrote: > Hello, > > I got this matrix of gentic distances between my samples. it is 85x85 but > only lower half (without diagonal) contains my distances. How can I make a > mean and standard deviation on these distances, please ?
You can try something like dist.vec <- dist.matrix[lower.tri(dist.matrix)] mean(dist.vec) sd(dist.vec) Regards, - Jon ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.