purge_by_cv | R Documentation |
purge_by_cv
replaces the data entries at group CV > max_cv
to
NA.
purge_by_cv(df, id, max_cv = NULL, min_n = 1L, rm_allna = FALSE)
df |
The name of a primary data file. By default, it will be determined
automatically after matching the types of data and analysis with an
|
id |
Character string; one of |
max_cv |
Numeric; the cut-off in maximum CV. Values above the threshold will be replaced with NA. The default is NULL with no data trimming by max CV. |
min_n |
Positive integer. When calling from |
rm_allna |
Logical; if TRUE, removes data rows that are exclusively NA
across ratio columns of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.