我正在尝试根据条件在所有列上插入边框,即“边框”列中有1的位置(Excel中的M列)。这就是我所拥有的:
border = createStyle(borderColour = "black", border = "top",borderStyle =
"thick", halign = "left" )
Rows = 3:(nrow(Merge)+1)
conditionalFormatting(wb, "Variables Categoricas", cols = 1:13 , rows = Rows,
rule ="($M:$M==1)", style = border)
我不太确定conditionalFormatting函数如何理解规则参数。感谢您正确编写此规则的任何帮助。谢谢。