.sum {tabshiftr} | R Documentation |
Summarise groups of rows or columns
Description
Summarise groups of rows or columns
Usage
.sum(..., character = NULL, numeric = NULL)
Arguments
... |
[ |
character |
[ |
numeric |
[ |
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.
Value
the index values where the target was found.