select_features: Remove features from dtm of each group base don cc_test and...

View source: R/rainette.R

select_featuresR Documentation

Remove features from dtm of each group base don cc_test and tsj

Description

Remove features from dtm of each group base don cc_test and tsj

Usage

select_features(m, indices1, indices2, cc_test = 0.3, tsj = 3)

Arguments

m

global dtm

indices1

indices of documents of group 1

indices2

indices of documents of group 2

cc_test

maximum contingency coefficient value for the feature to be kept in both groups.

tsj

minimum feature frequency in the dtm

Details

Internal function, not to be used directly

Value

a list of two character vectors : cols1 is the name of features to keep in group 1, cols2 the name of features to keep in group 2


rainette documentation built on March 31, 2023, 6:43 p.m.