makeIndex_OH_DB_C: Creation of OH Index, DB Index and C-chain Index

Description Usage Arguments Value Author(s) Examples

View source: R/makeIndex_OH_DB_C.R

Description

This function creates OH Index, DB Index and C-chain Index of data containing calculated

Usage

1
makeIndex_OH_DB_C(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.

Value

a data set consisting of OH, DB, C indexes

Author(s)

André Vidas Olsen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# load user specified column names file.
userSpecifiedColnames <- read.table(system.file("extdata/LipidQ_DataBase",
 "userSpecifiedColnames.csv", package = "lipidQ"), stringsAsFactors =
 FALSE, header = TRUE, sep = ",")

# load pmolCalculatedDataSet.csv made by using the pmolCalc() function
pmolCalculatedDataSet <- read.table(system.file("extdata/dataTables/checks",
 "pmolCalculatedDataSet.csv", package = "lipidQ"),
 stringsAsFactors = FALSE, header = TRUE, sep = ",")

# make data of OH, DB and C indexes
indexData <- makeIndex_OH_DB_C(pmolCalculatedDataSet,
 userSpecifiedColnames = userSpecifiedColnames)

# print data
indexData[[1]] # OH index
indexData[[2]] # DB index
indexData[[3]] # C index

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