dist.city.block | R Documentation |
Calculates the city block distance between two matrices.
dist.city.block(x, y)
x |
first matrix |
y |
second matrix |
cbdist city block distance between x
and y
x <- matrix(0, nrow = 5, ncol = 7)
y <- matrix(1, nrow = 5, ncol = 7)
dist.city.block(x, y)
y <- matrix(c(rep(0, 15), rep(1, 20)), nrow = 5, ncol = 7)
dist.city.block(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.