return_if_single: Reduce targets if more than one variable, return otherwise

View source: R/reducers.R

return_if_singleR 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 data.frame containing the targets to reduce

.f

a reduction function to apply

...

arguments passed to .f

Value

a numeric vector, the reduced or original variable


malcolmbarrett/partition2 documentation built on Nov. 12, 2024, 1:24 p.m.