return_if_single {partition} | R Documentation |
Reduce targets if more than one variable, return otherwise
Description
Reduce targets if more than one variable, return otherwise
Usage
return_if_single(.x, .f, ...)
Arguments
.x |
a |
.f |
a reduction function to apply |
... |
arguments passed to |
Value
a numeric vector, the reduced or original variable
[Package partition version 0.2.2 Index]