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

restore

Restore S4 object with data.table slots


Description

Reloading an S4 object that has a slot with a data.table may result in buggy behavior. this auxiliary function will copy the data.table once to have a restored object that works.

Usage

restore(filename)

Arguments

filename

A *.rds file to restore.

Examples

k <- kwic("REUTERS", query = "oil")
kwicfile <- tempfile()
saveRDS(k, file = kwicfile)
k <- restore(filename = kwicfile)
k2 <- enrich(k, s_attribute = "id")

polmineR

Verbs and Nouns for Corpus Analysis

v0.8.5
GPL-3
Authors
Andreas Blaette [aut, cre] (<https://orcid.org/0000-0001-8970-8010>), Christoph Leonhardt [ctb]
Initial release
2020-09-22

We don't support your browser anymore

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