I have a Flextable df
and the following condition:
df = setFlexTableBackgroundColors(df, i = 1, j = 5:15,
colors = ifelse(test$object == 0,"white"))
However it gives me the following error message:
Error in ifelse(test$object == 0, "white") :
argument "no" is missing, with no default"
Apparently the package wants something like this: ifelse(test$object == 0, "white", "black")
, because then the condition is working.
However I am using this condition on different rows that have different colors (j = 5:15) and I don't want them to turn "black"
if the condition is not fulfilled.
Does someone have any hints how I can solve this problem?