Learn R Programming

datamart (version 0.4.2)

query: Request data from data source

Description

This generic function is the main interface to the data behind the Xdata layer. The first argument is the data object, the second argument is an identifier, usually a string, of the resource requested.

Arguments

self
an Xdata object
resource
an identifier of the resource requested. End-user usually provide character, developer use resource and dispatch on the type.
...
additional parameter

Details

Depending on the data object, additional parameter can be provided. The slot resource should be filled with the help of the resource function. The default (Xdata) implementation with resource as character creates a Resource object of that name and calls itself again with this parameter. Thus dispatching on the resource is possible.