R/aveSpec.R

Defines functions aveSpec

Documented in aveSpec

aveSpec <- function(nVec) {
        n <- length(nVec)
        cMa <- read.files(nVec[1])[,2]
        for (i in 2:n) {
                f1 <- read.files(nVec[i])
                cMa <- cbind(cMa, f1[,2])
        }
        obj <- rowMeans(cMa)
	cbind(f1[,1], obj)
}

Try the PROcess package in your browser

Any scripts or data that you put into this service are public.

PROcess documentation built on Nov. 8, 2020, 5:44 p.m.