getElem.DFSource | R Documentation |
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.
## S3 method for class 'DFSource'
getElem(x)
x |
A DFSource object |
A list with the current row in the content of a DFSource object. The current row index is the position in the DFSource object.
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.