title: Flextable Basic Conditional Formatting
body: <p>I have a flextable that I am trying to conditionally format percentage numbers based if they are &gt; or less than a certain %. It's a simple conditional format so I'm not sure why it's not working. I feel as though I'm missing something obvious here.</p>
  <p>Here is an example:</p>
  <pre><code>
  myft = structure(list(Name = c(&quot;Bob&quot;, &quot;Fred&quot;, &quot;Joe&quot;), `2020-03-30` = c(96, 
                                                                         100, 36)), row.names = c(NA, -3L), class = c(&quot;tbl_df&quot;, &quot;tbl&quot;, 
                                                                                                                      &quot;data.frame&quot;))
  myft = flextable(myft)
  
  
  myft = bg(myft, i = ~ Name  &gt; 50,
              j = 2,
              bg=&quot;red&quot;)
  myft
  </code></pre>
  <p>This code produces this image:</p>
  <p><a href="https://i.stack.imgur.com/lQs7r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lQs7r.png" alt="enter image description here" /></a></p>