R/getSpecToPlot.R

"getSpecToPlot" <-
  function(E, cohmax, cohcol, plotcohcolspec = TRUE) {
    if (plotcohcolspec) {
      if (!identical(cohcol, 0)) {
        E[, cohcol] <- E[, cohcol] * cohmax
      }
    } else {
      if (!identical(cohcol, 0)) {
        E <- E[, -cohcol]
      }
    }
    E
  }

Try the TIMP package in your browser

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

TIMP documentation built on Dec. 28, 2022, 3:06 a.m.