Skip to contents

This function is called inside annex().

Usage

annex_handle_duplicates(x, formula, duplicate.action, verbose = FALSE)

Arguments

x

data.frame to be processed.

formula

object of class Formula, the formula provided to annex().

duplicate.action

can be NULL (no dedicated handling for duplicates) of a function. If function it must return a single numeric value, will be tested to be able to provide a useful error for the user if needed.

verbose

logical, verbosity (defaults to FALSE).

Value

Returns a data.frame similar to argument x with possibly modified content (depending on how to deal with duplicates if any).

Author

Reto