createSELFile | R Documentation |
Given data structures that represent the various pieces of an SEL file, this function will write or return SEL formatted files
createSELFile(selExperimentMetaData, selCalculatedResults = NULL,
selRawResults = NULL, outputFilePath = NULL, format = "CSV")
selExperimentMetaData |
typically a data.frame created by |
selCalculatedResults |
optional data.frame of the format |
selRawResults |
optional data.frame of the format |
outputFilePath |
optional output file path (see details for return if left NULL) |
format |
"CSV", "XLS" or "XLSX" (not used if outputFilePath is NULL, see details) |
If the outputFilePath is NULL then the function will write the CSV representation of the file to a character and return, otherwise it returns the path to the written file.
character path of the written file or character of the CSV results
selExperimentMetaData <- createSELExperimentMetaData(protocolName = "Cytotox Assay",
experimentName = "2013123_cytotox_bbolt",
assayDate = "2013-01-12")
cars2 <- cars
cars2$Sample <- paste0("CORP",1:nrow(cars))
selCalculatedResults <- createSELCalculatedResults(cars2, corporateIDColumn = "Sample")
#Outputs a character representation of a CSV SEL format
createSELFile(selExperimentMetaData, selCalculatedResults)
#Outputs a file in SEL format
myFile <- tempfile()
createSELFile(selExperimentMetaData, selCalculatedResults, outputFilePath = myFile)
read.csv(myFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.