getConfounders: Get a data frame matching each user to the values of several...

Description Usage Arguments Value

View source: R/confound.r

Description

Get a data frame matching each user to the values of several confounding variables.

Usage

1
2
3
getConfounders(users = NULL, queryList, wide = F,
  runDate = as.numeric(gsub(pattern = "-", replacement = "", x = Sys.Date())),
  con = redshift_connection$con)

Arguments

users

Numeric, a vector of user ids to include in the calculation.

queryList

A list of queries to run in the calculation. Each query calculates one or more confounding variables, and returns the results in a data.frame.

wide

Should results be returned in wide format (T) or long format (F)?

runDate

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

con

The database connection to run the queryList against.

Value

A data.frame of the form (user_id, variable, value).


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