sum_over: Sum Over Selected Vars

Description Usage Arguments Examples

Description

Function builds an expression to sum over selected variables. You can select variables with tidyverse way.

Usage

1
sum_over(.df, ...)

Arguments

.df

data frame

...

variables to sum

Examples

1
2
# Sum all vars from `mpg` to `carb` except `cyl` to `am`
mutate(mtcars, ss = sum_over(mtcars, mpg:carb, -(cyl:am)))

pavel-filatov/featr documentation built on May 12, 2019, 1:29 a.m.