tCorpus-cash-read_text: Print tokens as text

Description Arguments Details Examples

Description

Usage:

Arguments

doc_id

The doc_ids of the documents to be printed.

column

The name of the column from which the text is printed.

meta_columns

The meta data that is printed at the top of each text.

Details

## R6 method for class tCorpus. Use as tc$method (where tc is a tCorpus object).

1
read_text(doc_id, column='token', meta_columns = self$meta_names)

Examples

1
2
3
4
5
6
7
8
d = data.frame(text = c('First text', 'Second text', 'Third text'),
medium = c('A','A','B'),
date = c('2010-01-01','2010-02-01','2010-03-01'))
tc = create_tcorpus(d)

tc$read_text(1)
tc$read_text(2)
tc$read_text(1:3)

kasperwelbers/corpustools documentation built on Sept. 1, 2018, 1:03 p.m.