change_XoX_column_group: General X over X Change Column by Group

Description Usage Arguments Examples

Description

Creates a change column based on a group. This function is specific as the data must have three columns at most. A category group column group a/b, device type, segment, a calendar group month, year, day and a numeric column to aggregate users, visits, clicks etc.. The data columns MUST be in that order as well. Category Group, Calendar Group, Numeric Aggregate.

Usage

1
change_XoX_column_group(df, col1, col2, XoX)

Arguments

df, col1, col2, XoX

a data frame two columnnames and XoX name for new column

Examples

1
tb %>% select(Type, Month, Users) %>% change_XoX_column_group(Dec,Jan,"MoM")

nhemerson/tibbleColumns documentation built on May 29, 2019, 7:18 a.m.