dist.mode | R Documentation |
Configure which package is used to compute the distance matrix or register one. Note that the speed depends on the data and the hardware.
dist.mode(mode = c("stats", "amap"), FUN = NULL)
mode |
string. The available modes are |
FUN |
a function which has one argument |
NULL
. The function is called for side effects.
# use stats::dist to compute the pairwise distance
dist.mode("stats")
# use amap::Dist to compute the pairwise distance
dist.mode("amap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.