Displaying 1 result from an estimated 1 matches for "distgeneucl".
2018 Mar 15
3
stats 'dist' euclidean distance calculation
...1 1 1
# Samp3 1 1 1 1 2 0
### Section 2: Individual genetic distance: euclidean distance (dist {adegenet})
# Test dist() function
# collect euclidean genetic distances
distgenEUCL <- dist(Mydata1, method = "euclidean", diag = FALSE, upper = FALSE, p = 2)
distgenEUCL
# Samp1 Samp2
# Samp2 2.449490
# Samp3 1.732051 1.414214
x<-as.matrix(dist(distgenEUCL))
x
# Samp1 Samp2...