Determine if a Matched object was created with or without replacement.

withReplacement(x, ...)

# S4 method for Matched
withReplacement(x, ...)

Arguments

x

Matched object.

...

Additional arguments.

Value

TRUE/FALSE indicating whether matching was done with or without replacement.

Examples

set.seed(123)
mdf <- makeExampleMatchedDataSet(matched = TRUE)
withReplacement(mdf)
#> [1] FALSE