Learn R Programming

datamart (version 0.5.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 (type character), of the resource requested.

Usage

query(self, resource, ...)
"query"(self, resource, ...)
"query"(self, resource, maxrows = NULL, interactive = FALSE, typeconv = TRUE, verbose = getOption("verbose"), ...)
"query"(self, resource, ...)
"query"(self, resource, verbose = getOption("verbose"), ...)
"query"(self, resource, verbose = TRUE, ...)
"query"(self, resource, verbose = getOption("verbose"), extract.fct = readLines, ...)
"query"(self, resource, ...)
"query"(self, resource, verbose = getOption("verbose"), ...)
"query"(self, resource, verbose = getOption("verbose"), ...)
"query"(self, resource, verbose = getOption("verbose"), ...)
"query"(self, resource, verbose = getOption("verbose"), extract.fct = readLines, ...)
"query"(self, resource, verbose = getOption("verbose"), for.update = FALSE, ...)
"query"(self, resource, curl = RCurl::getCurlHandle(), ...)

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
maxrows
(Xsparql) limit of lines to return (default NULL)
interactive
(Xsparql) if TRUE, display result in chunks (default FALSE)
typeconv
(Xsparql) if TRUE (default), convert numbers and dates
verbose
print diagnostic messages, default=FALSE
extract.fct
(DirectoryLocation) which function to use to read file (default readLines)
for.update
(CsvData) update before loading (default FALSE)
curl
(GoogleOAuth2) curl handle

Details

Depending on the data object, additional parameter can be provided.