sort_is: Sort Internal Standards

Description Usage Arguments Value Author(s) Examples

View source: R/sort_is.R

Description

This function orders all internal standards (is) in a given data set so that they appear as the last rows (after the normal species). The purpose for this is mainly to get a better overview of the data types when manually inspecting the data.

Usage

1
sort_is(data, userSpecifiedColnames = NULL)

Arguments

data

data formatted by the use of the mergeDataSet function from LipidQ.

userSpecifiedColnames

the column names template file containing user specified column names for the input data. This file

Value

a sorted data set

Author(s)

André Vidas Olsen

Examples

1
2
3
4
5
6
7
8
9
mergedDataSets <- read.table(system.file("extdata/dataTables/checks",
 "mergedDataSets.csv", package = "lipidQ"), stringsAsFactors = FALSE,
 header = TRUE, sep = ",")

list <- read.table(system.file("extdata/LipidQ_DataBase",
 "userSpecifiedColnames.csv", package = "lipidQ"),
 stringsAsFactors = FALSE, header = TRUE, sep = ",")

sortedData <- sort_is(mergedDataSets, userSpecifiedColnames = list)

ELELAB/lipidQ documentation built on Feb. 24, 2020, 12:54 a.m.