veg.distance {GRNNs}R Documentation

distance using vegdist

Description

distance using vegdist

Usage

veg.distance(a, b, fun = "bray")

Arguments

a

The dataframe of training predictor dataset

b

The dataframe of validation predictor dataset

fun

The distance function

Value

The matrix of distance between a and b

Examples

data("physg")
physg.train<-physg[1:10,]
physg.test<-physg[11:30,]
distance<-veg.distance(physg.test,physg.train,"bray")

[Package GRNNs version 0.1.0 Index]