if (checkForPackageWithVersion("ChemoSpec", 6.0)) {
library("ChemoSpec")
data(metMUD1)
metMUD1a <- updateGroups(metMUD1) # reports old groups
metMUD1a <- updateGroups(metMUD1, new.grps = c("C", "T"))
}
if (checkForPackageWithVersion("ChemoSpec2D", 0.5)) {
library("ChemoSpec2D")
data(MUD1)
MUD1a <- updateGroups(MUD1, new.grps = c("control", "treatment"))
}
Run the code above in your browser using DataLab