set_metadata | R Documentation |
'set_metadata' fill metadata slot of a joined_chrom object.
set_metadata(Object, metadata) ## S4 method for signature 'joined_chrom,data.frame' set_metadata(Object, metadata)
Object |
a joined_chrom object |
metadata |
a data.frame containing the metadata. It must have a column named as Names to merge with the chromatograms. |
GB08_fl <- system.file("extdata", "08GB.cdf", package = "RGCxGC") GB09_fl <- system.file("extdata", "09GB.cdf", package = "RGCxGC") GB08 <- read_chrom(GB08_fl, 5L) GB09 <- read_chrom(GB09_fl, 5L) extra_info <- data.frame(Names = c("GB08", "GB09"), Type = c("Control", "Treatment")) join_chrom <- join_chromatograms(GB08, GB09) join_metadata <- set_metadata(join_chrom, metadata = extra_info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.