R/printSimpleOpenxlsxStyle.R

printSimpleOpenxlsxStyle  <- function (dat, tabName = "results" , wb ) 
{

	addWorksheet(wb, sheetName=tabName)
	altLines <- createStyle(fgFill = "lightblue")	
	writeData(wb, tabName, dat, keepNA=FALSE)
	
	for ( i in seq_len(ncol(dat))) addStyle(wb, tabName, style=altLines, rows = seq(1,nrow(dat)+1, 2), cols = i, gridExpand=TRUE);

	
   
}

Try the PloGO2 package in your browser

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

PloGO2 documentation built on Nov. 8, 2020, 5:40 p.m.