Learn R Programming

RSiteCatalyst (version 1.4.16)

GetElements: Get Valid Elements for a Report Suite

Description

Get valid elements for a report suite for the current user. This list is restricted by optionally specified existing elements, existing metrics and date granularity.

Usage

GetElements(reportsuite.ids, metrics = c(), elements = c(),
  date.granularity = "", report.type = "")

Arguments

reportsuite.ids

Single report suite id, or character vector of report suite ids

metrics

List of existing metrics you want to use in combination with an additional element

elements

List of existing elements you want to use in combination with an additional element

date.granularity

Granularity that you want to combine with an additional metric

report.type

If set to 'warehouse', the elements and metrics returned to use in combination with an addional element are supported in data warehouse reports.

Value

Data frame

Details

This function requires a character vector with one or more valid Report Suites specified.

Examples

Run this code
# NOT RUN {
elements.valid <- GetElements("your_report_suite",
                              metrics=c('visitors','pageviews'),
                              elements=c('page','geoCountry'),
                              date.granularity='day',
                              report.type='')

elements <- GetElements(c("your_prod_report_suite","your_dev_report_suite"))
# }

Run the code above in your browser using DataLab