datacamp / funneljoin

Join tables based on events occurring in sequence in a funnel.
Other
140 stars 7 forks source link

Add funnel_start, funnel_step, and funnel_end functions #23

Closed robinsones closed 5 years ago

robinsones commented 5 years ago

tbl_views_snowplow_moments() %>% funnel_start("registration", tstamp, user_id) %>% funnel_step("exercise_start", type = "first-firstafter") %>% funnel_step("project_start", type = "first-firstafter") %>% funnel_step("subscription", type = "first-firstafter") %>% funnel_end()

end result: columns: user_id, event_id_exercise_start... tstamp_exercise_start, tstamp_project_start, subscription

tbl_funnel: a tbl_df with an attribute containing original data, tstamp column, and user column

robinsones commented 5 years ago

Do the joining at each step

robinsones commented 5 years ago

add unit tests

robinsones commented 5 years ago

done