adaptedData.Rd
Convenience function for returning adapted data
adaptedData(x, train = TRUE)
# S3 method for fairadapt
adaptedData(x, train = TRUE)
# S3 method for fairadaptBoot
adaptedData(x, train = TRUE)
Object of class fairadapt
or fairadaptBoot
, a result of an
adaptation procedure.
A logical indicating whether train data should be returned.
Defaults to TRUE
. If FALSE
, test data is returned.
Either a data.frame
when called on an fairadapt
object, or a list
of data.frame
s with the adapted data of length n.boot
, when called on a
fairadaptBoot
object.