Skip to contents

Create dummy variables and count across if above zero

Usage

count_if_above_zero(df, vars, new_colname)

Arguments

df

A data frame.

vars

Vector of column names.

new_colname

The name of the new column.