cut.feature_test: Categorize tested features

Description Usage Arguments Value

View source: R/feature_test_class.R

Description

Categorizes results of test_features function into groups based on their significance.

Usage

1
2
## 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 feature_test.

split

attribute along which output should be categorized. Possible values are "significances", "positives" and "negatives". See Value.

breaks

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.

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.


biogram documentation built on March 31, 2020, 5:14 p.m.