Determine if a Matched object was created with or without replacement.
withReplacement(x, ...)
# S4 method for Matched
withReplacement(x, ...)
Matched object.
Additional arguments.
TRUE/FALSE indicating whether matching was done with or without replacement.
set.seed(123)
mdf <- makeExampleMatchedDataSet(matched = TRUE)
withReplacement(mdf)
#> [1] FALSE