In flextable in R, I am trying to conditional formatting. For example, if a column is a positive number, I would like the color "green". And if the number is negative, I would like the color "red". But my code only works when my table in one row.
When my table is more than one row I get the following error:
Error in get_rows_id(x[[part]], i) :
invalid row selection. length(i)
[1] != nrow(dataset)
[6].
Please help. Im stuck. I read the documentation but I can't figure it out.