fix_column_names: Automatically fix column names using the first algorithm

View source: R/fix_column_names.R

fix_column_namesR Documentation

Automatically fix column names using the first algorithm

Description

Automatically fix column names using the first algorithm

Usage

fix_column_names(data, LFDT = FALSE, MOR = FALSE, ordered = TRUE, n_ids = 3)

Arguments

data

A data frame or data table with format LFDT or WFDT having n_ids ID columns

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

ordered

Is the data ordered with Comparison first, then SampleID, and last ReplicateID? If not, data is sent to fix_column_names_2(), which does approximate matching with slack = 3. Note that setting to ordered when not being ordered in the correct way will affect the output data in some negative manner

n_ids

The number of ID columns found in data. Ignored if ordered is TRUE

Value

A data table identical to input data but ID column names are replaced with standard ones. If ordered is FALSE then approximate matching is done with slack = 3

Examples

fix_column_names(data = sampled_cs_measurements, ordered = TRUE)

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