Summarise groups of rows or columns

.sum(..., character = NULL, numeric = NULL)

Arguments

...

[integerish(1)]
columns or rows that shall be combined. If there are several items provided, they will be summarised into one group that is combined according to its type and the respective function provided in character or numeric.

character

[function(1)]
function by which character columns or rows shall be combined.

numeric

[function(1)]
function by which numeric columns or rows shall be combined.

Value

the index values where the target was found.

Details

By default character values are summarised with the function paste0(na.omit(x), collapse = "-/-") and numeric values with the function sum(x, na.rm = TRUE). To avoid un-intuitive behavior, it is wisest to explicitly specify how all exceptions, such as NA-values, shall be handled and thus to provide a new function.