Set the sample names of an eem or eemlist objects
eem_names(x) <- value
x | An object of class |
---|---|
value | A character vector with new sample names. Must be equal
in length to the number of samples in the |
An eem
or eemlist
.
folder <- system.file("extdata/cary/scans_day_1", package = "eemR") eems <- eem_read(folder, import_function = "cary") eem_names(eems)#> [1] "nano" "sample1" "sample2" "sample3"#> [1] "a" "b" "c" "d"