powered by
distance using vegdist
veg.distance(a, b, fun = "bray")
The dataframe of training predictor dataset
The dataframe of validation predictor dataset
The distance function
The matrix of distance between a and b
# NOT RUN { data("physg") physg.train<-physg[1:10,] physg.test<-physg[11:30,] distance<-veg.distance(physg.test,physg.train,"bray") # }
Run the code above in your browser using DataLab