Skip to content

Commit

Permalink
Merge pull request #8 from nbaxter13/patch-1
Browse files Browse the repository at this point in the history
fixed problem with transposed upper triangle in read.dist
  • Loading branch information
kelly-sovacool committed Sep 3, 2020
2 parents 96c70de + d169fc7 commit 2b45d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read.dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ read.dist <- function(file, input='lt', make.square=T, diag=0){
c<-c+i #this because math
}
if(make.square){
m[upper.tri(m)] <- m[lower.tri(m)] #fills in upper triangle
m[upper.tri(m)] <- t(m)[upper.tri(m)] #fills in upper triangle
}
}

Expand Down

0 comments on commit 2b45d7d

Please sign in to comment.