getElem.DFSource {phm} | R Documentation |
Obtain the current row of the content of a DFSource
Description
Using the position field of x to indicate the index of the current row, we retrieve the current row of the content of a DFSource. This function is mainly used by the VCorpus function.
Usage
## S3 method for class 'DFSource'
getElem(x)
Arguments
x |
A DFSource object |
Value
A list with the current row in the content of a DFSource object. The current row index is the position in the DFSource object.
Examples
library(tm)
df=data.frame(id=1:3,text=c("First text","Second text","Third text"),
title=c("N1","N2","N3"))
getElem(stepNext(DFSource(df)))
[Package phm version 1.1.2 Index]