tabulate: Tabulate Function

Description Usage Arguments Examples

View source: R/functions.R

Description

This function allows you to use the tabulate function of RDS.

Usage

1
2
3
tabulate(url, collection, view, dimensions = NULL, inject = FALSE,
  key = NULL, limit = NULL, measures = NULL, offset = NULL,
  orderby = NULL, where = NULL)

Arguments

url

The base URL of the server RDS is running on

collection

The collection ID

view

The view ID

dimensions

The names of the variables that should be used as dimensions

inject

Specifies if metadata should be injected into the data frame. If true and there are classifications available the columns codes will be replaced with code values. Defaults to FALSE

key

API key for views that require a key.

limit

Specifies the number of records to return

measures

The variables that should be used as a measure, will be the count by default

offset

Specifies the starting index of the records

orderby

Describes how the results should be ordered

where

Describes the subset of records the tabulation should run on

Examples

1
2
3
tabulate("http://localhost:8080/rds/api/catalog/","myCollection","myView",dimensions="var1,var2") 
tabulate("http://localhost:8080/rds/api/catalog/","myCollection","myView",dimensions="var1,var2",measures="AVG(var3)")
tabulate("http://localhost:8080/rds/api/catalog/","myCollection","myView",dimensions="var1,var2",measures="AVG(var3)",where="var1!=5",inject=TRUE) 

mtna/rrds documentation built on May 23, 2019, 8:19 a.m.