Learn R Programming

biogram (version 1.6.3)

cut.feature_test: Categorize tested features

Description

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

Usage

# S3 method for 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.