Description Usage Arguments Value Examples
View source: R/database-functions.R
Generates filebase for reading and writing to databases
1 | gen_filebase(mzdatafiles, BLANK, ion.id, IonMode)
|
mzdatafiles |
character vector containing data files to process and store results in databases |
BLANK |
a logical indicating whether blanks are being evaluated |
ion.id |
character vector of length 2 specifying identifier in filename designating positive or negative ionization mode. Positive identifier must come first. |
IonMode |
a character string defining the ionization mode. Must be either 'Positive' or 'Negative' |
character
1 2 3 4 5 6 7 8 | library(LUMA)
# is case sensitive on Linux
file <- system.file("extdata","Sample_Data.csv", package = "LUMA")
sample_data <- read.table(file, header = TRUE, sep = ",")
mzdatafiles <- sample_data$CT.ID
test <- gen_filebase(mzdatafiles = mzdatafiles, BLANK = FALSE, IonMode =
"Positive", ion.id = c("Pos","Neg")) #Returns "Peaklist_Pos"
print(test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.