augment.gt_dapc.Rd
Augment for gt_dapc
accepts a model object and a dataset and adds
scores to each
observation in the dataset. Scores for each component are stored in a
separate column, which is given name with the pattern ".fittedLD1",
".fittedLD2", etc. For consistency with broom::augment.prcomp, a column
".rownames" is also returned; it is a copy of 'id', but it ensures that
any scripts written for data augmented with broom::augment.prcomp will
work out of the box (this is especially helpful when adapting plotting scripts).
# S3 method for class 'gt_dapc'
augment(x, data = NULL, k = NULL, ...)
A gt_dapc
object returned by gt_dapc()
.
the gen_tibble
used to run the PCA.
the number of components to add
Not used. Needed to match generic signature only.
A gen_tibble containing the original data along with additional columns containing each observation's projection into PCA space.