refresh_tcorpus: Refresh a tCorpus object using the current version of...

Description Usage Arguments Value Examples

View source: R/1_tcorpus.r

Description

As an R6 class, tCorpus contains its methods within the class object (i.e. itself). Therefore, if you use a new version of corpustools with an older tCorpus object (e.g., stored as a .rds. file), then the methods are not automatically updated. You can then use refresh_tcorpus() to reinitialize the tCorpus object with the current version of corpustools.

Usage

1

Arguments

tc

a tCorpus object

Value

a tCorpus object

Examples

1
2
tc = create_tcorpus(c('First text', 'Second text'))
refresh_tcorpus(tc)

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