View source: R/fix_column_names_2.R
fix_column_names_2 | R Documentation |
In order to use many of the function of this package, it is required that the ID columns are given by particular names. Comparison ID column should be named Comparison
, Clinical sample ID should be named SampleID
and Replicate measurement ID should be named ReplicateID
. If given names deviates from the standard names, one might experience problems when using some of the functions found in this package
fix_column_names_2( data, n_ids = 3, LFDT = FALSE, MOR = FALSE, slack = 3, print_matches = FALSE )
data |
A data frame or data table with format LFDT or WFDT having |
n_ids |
The number of ID columns found in |
LFDT |
Is the data on long-format with comparison, i.e., TRUE or on wide format without comparison which corresponds to FALSE |
MOR |
Is the data only consisting of mean of replicates? If so, set this to TRUE. Or else, set this to FALSE |
slack |
How much deviance from look-up table should be allow. |
print_matches |
Should the matches for the respective ID columns from |
You need to be careful with how you specify LFDT, MOR and n_ids as wrong combinations of these may not be supported. Contact Author for further information
A data table identical to input data
but ID column names are potentially replaced with standard ones if they are found in respective look-up tables
fix_column_names_2(sampled_eqam_measurements, LFDT = FALSE, MOR = FALSE, slack = 1, print_matches = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.