Skip to content

Commit

Permalink
Fixed issue with all.equal() in iSnap2Transect()
Browse files Browse the repository at this point in the history
  • Loading branch information
droglenc committed Oct 9, 2018
1 parent 50488dd commit e31a21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/digitizeRadii.R
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ iSnap2Transect <- function(pts,trans.pts,
intersectsX <- trans.pts$x
### y-value of point of intercept with transect is same as y of point
intersectsY <- pts$y
} else if (all.equal(slpTransect,0)) {
} else if (isTRUE(all.equal(slpTransect,0))) {
## Transect is perfectly horizontal
### x-value of point of intercept with transect is same as x of point
intersectsX <- pts$x
Expand Down

0 comments on commit e31a21b

Please sign in to comment.