R/SS.r

Defines functions SS

Documented in SS

SS <- function(offtemp, Sx){

          totnM <- length(unique(offtemp))
          off2 <- as.data.frame(cbind(1:length(offtemp),offtemp))
          off2 <- split(off2, off2$offtemp)
          St <- list()
          for(i in 1:totnM) St[[i]] <- Reduce("+", Sx[ off2[[i]][,-2] ])
          St
          
}
KironmoyDas/KD-STAT0035-GMupdate documentation built on Feb. 15, 2021, 12:17 a.m.