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 May 2, 2019, 5:55 p.m.