RfastOfficial/Rfast

"harvesine" instead of "haversine"

coverton-usgs opened this issue · 3 comments

          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"

It is self explanatory. Give the matrix but first transposed it.

Sorry for being obtuse.

Just for clarity for the next hapless searcher

d <- Dist(t(x), method = "haversine")

Nobody said you are obtuse.
This is a temporary solution anyway.