Relative Content

Tag Archive for rstringrflextable

How do I change cell text color in flextable based on a string?

In Flextable, I’m trying to change the color of the text in a cell if it detects a “+” (green) or “-” (red). The help guide is really clear on how to do this for numeric data, but it doesn’t show how to do it based on detecting specific character strings. I’ve included sample data and code, but it gives this error