Public methods
Method new()
Initialize an instance of a report.
Usage
Report$new(connection, report_id, instance_id = NULL, parallel = FALSE)
Arguments
connection
MicroStrategy connection object. See Connection class.
report_id
Identifier of a pre-existing report containing the required data.
instance_id
Identifier of an instance if report instance has been already initialized, NULL by default.
parallel
(bool, optional): If True, utilize optimal number of threads to increase the download
speed. If False (default), this feature will be disabled.
Method to_dataframe()
Extract contents of a Report into a R Data Frame.
Usage
Report$to_dataframe(limit = NULL, callback = function(x, y) {
})
Arguments
limit
(int, optional): Used to control data extraction behaviour on report with a large number of rows. By
default the limit is calculated automatically. If TRUE, overrides automatic limit.
callback
used by the GUI to extract the progress information
Returns
Dataframe with data fetched from the given Report.
Method apply_filters()
Apply filters on the report data so only the chosen attributes, metrics, and attribute elements are
retrieved from the Intelligence Server.
Usage
Report$apply_filters(
attributes = NULL,
metrics = NULL,
attr_elements = NULL,
operator = "In"
)
Arguments
attributes
(list or None, optional): ID numbers of attributes to be included in the filter. If list is
empty, no attributes will be selected and metric data will be aggregated.
metrics
(list or None, optional): ID numbers of metrics to be included in the filter. If list is empty,
no metrics will be selected.
attr_elements
(list or None, optional): Attributes' elements to be included in the filter.
operator
(character, optional): Supported view filter operators are either "In" or "NotIn". This defines
whether data will include ("In") or exclude ("NotIn") the supplied attr_elements values.
Method clear_filters()
Clear previously set filters, allowing all attributes, metrics, and attribute elements to be retrieved.
Usage
Report$clear_filters()
Method get_attr_elements()
Load all attribute elements of the Report. Accessible via Report$attr_elements.
Fetching attriubte elements will also allow for validating attriute elements by the filter object.
Usage
Report$get_attr_elements(limit = 50000, verbose = TRUE)
Arguments
limit
How many rows of data to fetch per request.
verbose
If TRUE, displays list of attribute elements.
Method clone()
The objects of this class are cloneable with this method.
Usage
Report$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.