apply_filter: Apply Filter to MCA object

Description Usage Arguments Value

View source: R/utilities.R

Description

Apply Filter to MCA object

Usage

1
apply_filter(MCA_list, filter, value, dims)

Arguments

MCA_list

List containing output from MCA.

filter

Filter type. It can be "variables" or "individuals", depending on which plot is currently active

value

num. Value of the filter to be applied

dims

array informing about currently active dimensions

If filter = 'cos2', only rows with cos2 greater than or equal to value in at least one of plotted dimensions will be kept. If filter = 'contrib', only the top value observations with best contribution in at least one of the dimensions being displayed. For example, if value = 5 and filter = 'contrib', an observation won't be displayed if it does not rank among the top 5 contributions in any of displayed dimensions.

Value

Data frame with only those observations from DF that pass the filtering criteria, and the columns corresponding to current active dimensions


mandel94/easyAnalysis documentation built on Jan. 2, 2022, 9:52 a.m.