Learn R Programming

drLumi (version 0.1.2)

lum_export: Extract and generates data.frame from lum_import object

Description

Extract, generates and export different information from a lum_import object

Usage

lum_export(x, y = NULL, path = NULL, backname = "ackgro", stanname = "tandar", samplename = "Sample", dilutionname = "Dilution Factor", batchname = "batch", ...)

Arguments

x
a lum_import object with all information of the xPONENT software imported
y
an optional lum_import object different from x
path
the directory name where all files are exported. The directory is created according to batch name and system date. Default is NULL
backname
character vector that defines background
stanname
character vector that defines standard
samplename
character vector that defines the name of the samples variable
dilutionname
character vector that defines the name of the dilution factor variable
batchname
character vector that defines the name of the batch field in CSV
...
other parameters of the function

Details

This function returns a list with all datasets from an object of class lum_import. Also is possible to export into several csv files (for Fluorescence-type data) or zip file (for Bead-type data).

Examples

Run this code
# Read all data
imp_path <-  system.file(c("inst","extdata"),"plate1.csv",
package="drLumi")
imp <- lum_import(imp_path)
exp <- lum_export(imp)
names(exp)

# See variables
imp$well_vars

# Select only 2
imp$well_vars <- c("Median", "Net MFI")
exp <- lum_export(imp)
head(exp$well)

Run the code above in your browser using DataLab