use(pkg = "RcppCWB", corpus = "REUTERS")
pb <- corpus("REUTERS") %>%
partition_bundle(s_attribute = "id")
vc <- as.VCorpus(pb) # works only, if tm-package has not yet been loaded
vc <- as(pb, "VCorpus") # will work if tm-package has been loaded, too
vc <- corpus("REUTERS") %>%
split(s_attribute = "id") %>%
as("VCorpus")
Run the code above in your browser using DataLab