Some functions allow them (e.g. lmFit
) but others do not (e.g. makeContrasts
). May it be consistently permitted or banned?
Error in makeContrasts(paste(aType, "-", paste("(", paste(setdiff(allTypes, aType), collapse = '+':
Non-valid names: sampleIDOSCC_12-P,sampleIDOSCC_12-R1,sampleIDOSCC_16-P,sampleIDOSCC_16-M etc.
This doesn't seem a user question but a question for the development of the package... maybe use make.names to make syntactically R valid names?
Or if this is to to name the reference in the contrast I tend to use "X_vs_Y" which is valid and readable (but are longer).