powered by
grnn distance
grnn.distance(x, y, fun)
The dataframe of training predictor dataset
The dataframe of training response variables
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<-grnn.distance(physg.test,physg.train,"bray") # }
Run the code above in your browser using DataLab