Match the nearest neighbor from a redirected Cornerstone
redirectDataset) to corresponding selected predictor variables.
Predictor variables from both datasets are supposed to be numeric to apply the Euclidean
distance calculated by
The function returns a dataset with the nearest neighbor to every observation, matched by
the predictor variables.
Available response, group, and auxiliary variables from the redirected datasets are passed
through, as well as, selected auxiliary variables.
The calculated distance is attached.
matchNearestNeighbor( dataset = cs.in.dataset(), preds = cs.in.predictors(), auxs = cs.in.auxiliaries(), robject = cs.in.Robject(), return.results = FALSE )
Matched nearest neighbor which consists of predictor and available response, group, and auxiliary variables. The calculated distance is attached to this dataset.
Run times for every input R object.