Skip to contents

Add campaign id to dataframe

Usage

add_campaign_id(df, key_cols)

Arguments

df

A data.frame.

key_cols

A character vector of columns in df by which the data are to be grouped.

Value

df with a campaign identifier as a numeric.