View source: R/explore_basics.R
rt_get_cohorted_conversion_rates | R Documentation |
Each record in the cohort must have had enough time to convert, in order to be shown in the graph. For example, say the snapshots we are interested in are at day 1 and day 7. If the cohort refers to February, and it is March 3rd, every record in the February cohort has had at least 1 day of "activity" or potential to convert, so we can include Feb for that snapshot. However, not everyone in Feb has had 7 days of activity, so we cannot yet include Feb for the 7 day snapshot, because people who joined the cohort on Feb 28, for example, have not had a full 7 days of potential activity.
rt_get_cohorted_conversion_rates( dataset, first_date, second_date, reference_date, group_variable = NULL, snapshots = c(1, 7, 14), snapshot_units = "days", date_floor = "month" )
dataset |
dataframe |
first_date |
the reference date (e.g. first-touch point) |
second_date |
the date of conversion, NA if not converted |
reference_date |
we need to know how old the cohort is so we can determine if the |
group_variable |
a variable to group/facet by. If 'color_or_facet' will be ignored |
snapshots |
the numeric snapshots |
snapshot_units |
the units of the snapshots e.g. 'hours', 'days', 'weeks' |
date_floor |
how we should define the cohort group e.g. by 'day', 'by week', by 'months' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.