This function validates and adds a Res object (Res) to a Userm object (Userm). It checks whether the Res object has a valid ID, matching detectors, and properly structured matrices (interceptMtx and slopMtx). If all checks pass, the Res object is added to the Userm$Res list.
Examples
if (FALSE) { # \dontrun{
Res <- CreateRes(id, R, A)
Userm <- CreateUserm(A)
Userm <- AddRes2Userm(Res, Userm)
} # }