FlashReportQuery-class: An S4 class to represent a Flash Report query.

Description Slots

Description

An S4 class to represent a Flash Report query.

Slots

min_date

A Date object, representing the first day of the date ranges for which results are collected.

max_date

A Date object, representing the final day of the date ranges for which results are collected.

user_group

integer vector of user_ids to restrict results to. Cannot specify both user_group and user_group_query.

user_group_query

Character containing a SQL query that returns a table with a single column, user_id. Cannot specify both user_group and user_group_query.

user_group_name

Character, a name for the user group you're running the query on.

query_prototype

A character. Represents the SQL query that will return the desired results, but the date filters are general, and need to be subbed in using the 'substitute_dates' method.

query

A character. The actual query to run in Redshift.

raw_results

A data frame. The results of running "query".

final_results

A data frame. The formatted results that are ready to be bound to all other query results.


johnchower/flashreport documentation built on May 19, 2019, 3:03 p.m.