MS_wise_2: Converting standard wide format MS comparison data (WFDT) to...

MS_wise_2R Documentation

Converting standard wide format MS comparison data (WFDT) to standard long format (LFDT)

Description

A backup function or convenience function where we do not need to specify the ID columns explicitly. The given ID column names must however be close to corresponding standard names

Usage

MS_wise_2(data, fix_names = TRUE)

Arguments

data

A data frame or data table with m + n columns where m (usually two) of them are ID columns and n of them is numeric columns consisting of measurement results for each measurement system. The ID columns may be named approximately e.g., SampleID or ReplicateID, but names deviating much from these will not be recongnized

fix_names

Should ID column names with inappropriate names be attempted fixed. Default is TRUE, if we set FALSE and the ID columns not named correctly, this function will produce an error

Value

A data table of format LFDT, with m + 3 columns where the latter three columns are MS comparison ID column (new), Sample ID column and Replicate ID column. The m remaining columns are the resulting numeric columns representing MS measurements

Examples

MS_wise_2(sampled_cs_measurements, fix_names = FALSE)

pernille267/commutability.selectivity documentation built on July 20, 2022, 9:11 a.m.