Skip to content

Commit

Permalink
Merge pull request #14 from bradfordcondon/diagonals
Browse files Browse the repository at this point in the history
make diagonal equal
  • Loading branch information
bradfordcondon committed Mar 7, 2018
2 parents 455b71b + 036610b commit d8b84dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ test_check("WGPAN")
ID <- c("Amanita","Polyporus","Coprinus", "Daldinia", "Entoloma", "Flaviporus")
myData<- matrix(1:36, nrow = 6, ncol = 6, dimnames = list(ID, ID))
diag(myData)<- 0 #set diagonal to 0
#A pairwise distance matrix is equal along hte upper and lower triangular. Clone the upper onto the lower.
myData[lower.tri(myData)] <- myData[upper.tri(myData)]
clades = c("Agaricales", "Polyporales", "Agaricales", "Xylariales", "Agaricales", "Polyporales")
cladeList = data.frame(ID, clades)
x<- myData
Expand Down

0 comments on commit d8b84dd

Please sign in to comment.