compare() compares a proxy dataset with a training set or other
data set that is considered to be the master. A range of metrics is
returned, currently for samples only.compare(x, ...)## S3 method for class 'default':
compare(x, y, env,
by = c("sites", "species"),
ordination = "rda",
method = "chord",
transform = NULL,
n2limit = 5L,
...)
by = "species".distance.5L
is one suggested by R. Telford.by = "species" a data frame of diagnostics for each species
(proxy) in y relative to x. If by = "sites", the
diagnostics are for each sample (row) in y. Depending on the
value of by some of the following columns will be returnedsumMissingx.sumPoorOptclosestSampx.residLeny. A measure of how well the sample fits into the
species-environment relationship of a constrained ordination. See
residLen for details. Not given if env is not
provided.inTrainy is present in the training data x.n2y.n2Trainn2 but computed from the
training data x.maxy.maxTrainmax but computed using
the training data x.data(ImbrieKipp, V12.122, SumSST)
compare(ImbrieKipp, V12.122, env = SumSST, ordination = "rda",
method = "chord")Run the code above in your browser using DataLab