Source(tm)
Source()所属R语言包:tm
Access Sources
访问来源
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Methods to access sources which abstract input locations, like a directory, a connection, or simply an R vector.
抽象的输入位置,像一个目录,连接,或只是一个R矢量的方法来访问来源。
用法----------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.
A的来源。
Details
详细信息----------Details----------
The class Source is implemented as a list with following components:
作为一个Source以下组件的实现类list:
DefaultReader Object of class function
DefaultReader类的对象function
Encoding Object of class character holding the
Encoding类的对象character持有
Length Object of class numeric denoting the number of the elements delivered by the source. If the number
Length对象类numeric表示由源交付的元素的数目。如果该号码
LoDSupport Object of class logical indicating
LoDSupport类的对象logical表明
Names Object of class character storing
Names类的对象character存储
Position object of class numeric indicating
Position类的对象numeric表明
Vectorized object of class logical indicating
Vectorized类的对象logical表明
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.
的功能eoi回报TRUE如果输入源。 getElem提取的当前位置处的元素,而pGetElem平行一次检索的所有元素。 stepNext增加在源代码中的下一个元素的位置。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
getSources to list available sources.
getSources列出可用的来源。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|