R/ncutWORD.R

Defines functions ncutWORD

#helper function for word_list (not exported)
ncutWORD <-
function(freqWORDS.DF, cut.n = 15) {
    FREQ <- NULL
    if (nrow(freqWORDS.DF) > cut.n) {
        subset(freqWORDS.DF, FREQ >= freqWORDS.DF[cut.n, "FREQ"])
    } else {
        freqWORDS.DF
    }
}

Try the qdap package in your browser

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

qdap documentation built on May 31, 2023, 5:20 p.m.