| sampleinfo_gsub {sampleInfo} | R Documentation |
sampleinfo_gsub(sampleinfo, find, replace.as);
this api is helpful for merge the sample groups in a simple manner: replace the different group label text as a common group label text, then all of these sample data will be merged into the same sample group.
a new vector of the SampleInfo object that the sample_info group label of each sample data has been replaced;
this function returns a R# error message object if the input data can not be cast to a collection of the sample information data.
imports "sampleInfo" from "phenotype_kit";
# merge the sample groups of "treat-1h" and "treat-2h"
# into a single sample group of "treat"
let samples = sampleinfo_gsub(samples, find = c("-1h", "-2h"), replace_as = "");