View source: R/filter_valids.R
filter_valids | R Documentation |
Filter features that have more than a proportion missing values in one or all groups.
filter_valids(
object,
grp,
min.prop = 2/3,
at.least.one = FALSE,
only.keep.vector = FALSE
)
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. |
Logical vector or data matirx.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.