Source

0th

Percentile

Access Sources

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]

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.

Aliases
  • Source
  • eoi
  • eoi.DataframeSource
  • eoi.DirSource
  • eoi.URISource
  • eoi.VectorSource
  • eoi.XMLSource
  • getElem
  • getElem.DataframeSource
  • getElem.DirSource
  • getElem.URISource
  • getElem.VectorSource
  • getElem.XMLSource
  • pGetElem
  • pGetElem.DataframeSource
  • pGetElem.DirSource
  • pGetElem.VectorSource
  • stepNext
  • stepNext.Source
Documentation reproduced from package tm, version 0.5-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.