Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

refresh_tcorpus

Refresh a tCorpus object using the current version of corpustools


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

refresh_tcorpus(tc)

Arguments

tc

a tCorpus object

Value

a tCorpus object

Examples

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

corpustools

Managing, Querying and Analyzing Tokenized Text

v0.4.10
GPL-3
Authors
Kasper Welbers and Wouter van Atteveldt
Initial release
2022-05-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.