Skip to content
Prev 26036 / 63424 Next

buglet in dist() ?

Ben Bolker wrote:
I think not.  The first *five* lines are

    if (!is.na(pmatch(method, "euclidian")))
        method <- "euclidean"
    METHODS <- c("euclidean", "maximum", "manhattan", "canberra",
        "binary", "minkowski")
    method <- pmatch(method, METHODS)

so what happens is that if you enter "euclidian" (which I gather is an 
uncommon but valid spelling) you get the same result as with "euclidean".