Categorizes results of test_features
function into groups based on their
significance.
# S3 method for feature_test
cut(x, split = "significances", breaks = c(0, 1e-04, 0.01, 0.05, 1), ...)
an object of class feature_test
.
attribute along which output should be categorized. Possible values are
"significances"
, "positives"
and "negatives"
. See Value
.
a vector of significances of frequencies along which n-grams are aggregated.
See description of cut
function and Details
.
further parameters accepted by the cut
function.
the value of function depends on the split
parameter.
The function returns a named list of length equal to the length
of significances
(when split
equals "significances"
) or
frequencies
(when split
equals "positives"
or "negatives"
)
minus one. Each elements of the list contains names of the n-grams belonging to the given
significance or frequency group.