I'm trying to use the conditionalFormatting() function from the openxlsx package in R. I would like the function to compare date values in two columns (A and B), and color the cell value in B only if the value is smaller than A. Is this a stretch?
conditionalFormatting(wb, "Sheet1", cols=12, rows=1:nrow(data), rule = 'B<A', style = myStyle)
