R/filter.words.R

filter.words <-
function (documents, to.remove) 
{
    lapply(documents, function(x) x[, !(x[1, ] %in% to.remove), 
        drop = FALSE])
}

Try the lda package in your browser

Any scripts or data that you put into this service are public.

lda documentation built on May 1, 2019, 10:34 p.m.