View source: R/stackable_functions.R
require_data_in_samples | R Documentation |
Allows you drop columns that don't meet criteria for X
require_data_in_samples(
my_dt = NULL,
col_names = NULL,
my_summary = "Require data in smaples",
percentage_of_samples = 75,
requirement = function(x) {
sum(x > 0)
},
sample_key = get_default_sample_key(),
readme_path = NULL
)
my_dt |
data.table input |
col_names |
Vector of character strings to name the columns that will have this
operation performed on them. Uses |
my_summary |
Character string to change the default comment that will be appended to my_dt. |
percentage_of_samples |
Percentage of samples that will need to meet the requirement to keep the column |
requirement |
Function by which to judge the column. For example the default
( |
sample_key |
Character string to specify the column that is the sample key. This column will not be operated upon. |
readme_path |
Optional path to which the comments will be appended. |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ require_data_in_samples ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.