dist.binary(df, method = NULL, diag = FALSE, upper = FALSE)
as.matrix(1 * (df > 0))
dist
between the rows of the data framedata(aviurba)
for (i in 1:10) {
d <- dist.binary(aviurba$fau, method = i)
cat(attr(d, "method"), is.euclid(d), "")}
Run the code above in your browser using DataLab