Description Usage Arguments Value Author(s) Examples
View source: R/makeIndex_OH_DB_C.R
This function creates OH Index, DB Index and C-chain Index of data containing calculated
1 | makeIndex_OH_DB_C(data, userSpecifiedColnames = NULL)
|
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. |
a data set consisting of OH, DB, C indexes
André Vidas Olsen
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.