Learn R Programming

cohorts (version 1.0.1)

cohort_table_pct: Convert Values of a Cohort Table to Percentages

Description

Converts values of a cohort table to percentages of initial cohort sizes.

Usage

cohort_table_pct(cohort_table, decimals = 1)

Arguments

cohort_table

Cohort table

decimals

Integer

Value

Cohort table

Examples

Run this code
# NOT RUN {
online_cohorts %>%
cohort_table_month(CustomerID, InvoiceDate) %>%
cohort_table_pct(decimals = 1)

# }

Run the code above in your browser using DataLab