Learn R Programming

tm (version 0.5-9.1)

Source: Access Sources

Description

Methods to access sources which abstract input locations, like a directory, a connection, or simply an Rvector.

Usage

## S3 method for class 'DataframeSource':
eoi(x)
## S3 method for class 'DirSource':
eoi(x)
## S3 method for class 'URISource':
eoi(x)
## S3 method for class 'VectorSource':
eoi(x)
## S3 method for class 'XMLSource':
eoi(x)
## S3 method for class 'DataframeSource':
getElem(x)
## S3 method for class 'DirSource':
getElem(x)
## S3 method for class 'URISource':
getElem(x)
## S3 method for class 'VectorSource':
getElem(x)
## S3 method for class 'XMLSource':
getElem(x)
## S3 method for class 'DataframeSource':
pGetElem(x)
## S3 method for class 'DirSource':
pGetElem(x)
## S3 method for class 'VectorSource':
pGetElem(x)
## S3 method for class 'Source':
stepNext(x)

Arguments

x
A source.

Details

The class Source is implemented as a list with following components: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

The function eoi returns TRUE if the end of input of the source is reached. getElem fetches the element at the current position, whereas pGetElem retrieves all elements in parallel at once. stepNext increases the position in the source to the next element.

See Also

getSources to list available sources.