#### On a distance vector
flow(runif(10,0,1))
flow(runif(10,0,500), standardize = TRUE)
# With NA's
d <- runif(10, 0,1)
d[2] <- NA
flow(d)
flow(d, rm.na=TRUE)
#### On a distance matrix
dm <- as.matrix(dist(runif(5,0,1), diag = TRUE, upper = TRUE))
flow(dm)
Run the code above in your browser using DataLab