filterGroups: Filter groups with less data points than the threshold

Description Usage Arguments Value Examples

View source: R/analysis.R

Description

Groups containing a number of non-missing values less than the threshold are discarded.

Usage

1
filterGroups(vector, group, threshold = 1)

Arguments

vector

Unnamed elements

group

Character: group of the elements

threshold

Integer: number of valid non-missing values by group

Value

Named vector with filtered elements from valid groups. The group of the respective element is given in the name.

Examples

1
2
# Removes groups with less than two elements
filterGroups(1:4, c("A", "B", "B", "D"), threshold=2)

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.