calculateWeeklyRetention: Calculate the weekly retention rate curve given a group of...

Description Usage Arguments Value

View source: R/retention_rate_curves.r

Description

Calculate the weekly retention rate curve given a group of users.

Usage

1
2
calculateWeeklyRetention(users = NULL, runDate = as.numeric(gsub(pattern =
  "-", replacement = "", x = Sys.Date())), con = redshift_connection$con)

Arguments

users

A numeric vector of user ids.

runDate

A dateid of the form yyyymmdd (numeric). All dates after the runDate will be filtered out.

con

Database connection to use for query.

Value

A data frame of the form (weekBeginning, pctActive)


johnchower/oneD7 documentation built on May 19, 2019, 4:21 p.m.