Options
Options in RQL Queries
In Roic AI API's query language (RQL), options are configurable parameters that modify how data is displayed or retrieved. Here we will cover six primary display parameters: showdates
, showheaders
, showquery
, transpose
, and xlsort
. These options allow for customized data presentation and are essential for tailoring query outputs to specific analytical needs.
Show Dates (showdates
)
showdates
)The showdates
parameter controls the visibility of dates associated with each data point returned by the query.
Mnemonic:
showdates
Valid Values:
False
orN
(Default for single data point): Dates are not shown.True
orY
(Default for multiple data points): Dates are shown.
Example Usage:
Hide dates when retrieving a single data point:
Show dates when retrieving a single data point:
Show Headers (showheaders
)
showheaders
)The showheaders
option dictates whether column headers are included in the output.
Mnemonic:
showheaders
Valid Values:
False
orN
(Default for single data point): Headers are not shown.True
orY
(Default for multiple data points): Headers are shown.
Example Usage:
Retrieve data with headers:
Retrieve data without headers:
Show Query (showquery
)
showquery
)Enables the display of the raw RQL query string that was used to retrieve the data.
Mnemonic:
showquery
Valid Values:
False
orN
(Default): The query is not shown.True
orY
: Displays the raw query string.
Example Usage:
Display the raw query string:
Transpose Axes (transpose
)
transpose
)This parameter controls the orientation of the data table.
Mnemonic:
transpose
Valid Values:
False
orN
(Default): Data is returned in a vertical format.True
orY
: Data is returned in a horizontal format.
Example Usage:
Transpose data to horizontal format:
Sort Dates (xlsort
)
xlsort
)Determines the order in which dates are displayed in a time series output.
Mnemonic:
xlsort
Valid Values:
ASC
: Ascending order from the oldest to most recent.DESC
(Default): Descending order from the most recent to oldest.
Example Usage:
Sort dates in descending order:
Each of these parameters can be used individually or combined to customize the output of your RQL queries to fit your specific analysis requirements, enhancing the readability and functionality of the data retrieved.
Last updated
Was this helpful?