cut.feature_test {biogram} | R Documentation |
Categorize tested features
Description
Categorizes results of test_features
function into groups based on their
significance.
Usage
## S3 method for class 'feature_test'
cut(x, split = "significances", breaks = c(0, 1e-04, 0.01, 0.05, 1), ...)
Arguments
x |
an object of class |
split |
attribute along which output should be categorized. Possible values are
|
breaks |
a vector of significances of frequencies along which n-grams are aggregated.
See description of |
... |
further parameters accepted by the |
Value
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.