"harvesine" instead of "haversine"
coverton-usgs opened this issue · 3 comments
coverton-usgs commented
There is a typo in checking "harvesine" method instead of "haversine". I have fix it and it will be chabged from the next update.
For now you can safely just transpose the given argument.
Originally posted by @ManosPapadakis95 in #65 (comment)
Can you explain "transpose the given argument"?
x <- matrix(rnorm(200), nrow = 100, ncol = 2)
d <- Dist(x, method = "harvesine")
Produces "Error: Unsupported Method: harvesine"
ManosPapadakis95 commented
It is self explanatory. Give the matrix but first transposed it.
coverton-usgs commented
Sorry for being obtuse.
Just for clarity for the next hapless searcher
d <- Dist(t(x), method = "haversine")
ManosPapadakis95 commented
Nobody said you are obtuse.
This is a temporary solution anyway.