R/boa.gewekePwr.R

"boa.gewekePwr" <- function(link)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
{
   spec <- NULL
   pnames <- boa.pnames(link)
   if(nrow(link) > 10) {
      for(i in pnames) {
         spec <- c(spec, spectrum0(link[, i])$spec)
      }
   } else {
      spec <- rep(NA, length(pnames))
   }

   return(structure(spec, names = pnames))
}

Try the boa package in your browser

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

boa documentation built on May 1, 2019, 9:12 p.m.