makeDatabase: Make Database

Description Usage Arguments Value Author(s) Examples

View source: R/makeDatabase.R

Description

This function creates a database based on the user specified column names template

Usage

1
makeDatabase(userSpecifiedColnames = NULL, DB_type)

Arguments

userSpecifiedColnames

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

DB_type

a string describing which of the two databases that is should be reset. "endo" for the endogene_lipid_db.csv database and "ISTD" for the ISTD_lipid_db.csv database.

Value

a database template file in the form of either endogene or ISTD

Author(s)

André Vidas Olsen

Examples

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

# make endo database
makeDatabase(userSpecifiedColnames = userSpecifiedColnames, DB_type = "endo")

# make ISTD database
makeDatabase(userSpecifiedColnames = userSpecifiedColnames, DB_type = "ISTD")

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