crubba / Wiley-ADCR

Repository for the book "Automated Data Collection with R"
41 stars 76 forks source link

sFilter and prescindMeta removed in tm 0.6 #1

Closed vikasgupta1812 closed 8 years ago

vikasgupta1812 commented 9 years ago

sFilter and prescindMeta have been removed in the tm package version 0.6 refer: http://cran.r-project.org/web/packages/tm/news.html

petermeissner commented 8 years ago

Thanks, included in the errata: https://github.com/crubba/www-r-datacollection.com/blob/master/errata/errata.rmd

short_corpus <- release_corpus[c(
    which(
        meta(
            release_corpus, tag = "organisation"
        ) == "Department for Business, Innovation & Skills"
    )[1:20],
    which(
        meta(
            release_corpus, tag = "organisation"
        ) == "Wales Office"
    )[1:20],
    which(
        meta(
            release_corpus, tag = "organisation"
        ) == "Department for Environment, Food & Rural Affairs"
    )[1:20]
)]

table(unlist(meta(short_corpus, "organisation")))