filter_valids: Filter features

View source: R/filter_valids.R

filter_validsR Documentation

Filter features

Description

Filter features that have more than a proportion missing values in one or all groups.

Usage

filter_valids(
  object,
  grp,
  min.prop = 2/3,
  at.least.one = FALSE,
  only.keep.vector = FALSE
)

Arguments

object

A dat.frame or matrix containing data for filtering.

grp

A character vector dictating the grouping.

min.prop

The propotion of valid values for each group for retention.

at.least.one

TRUE means to keep the row if min.prop is met for at least one group, FALSE means min.prop must be met across all groups for retention.

only.keep.vector

TRUE for returning only the logical vector indicates the rows to keep, FALSE for returning the matix after filtering.

Value

Logical vector or data matirx.


jdreyf/jdcbioinfo documentation built on May 1, 2024, 4:36 a.m.