title: How to add a string subscript to a column name of a dataframe in R?
body: <p>I want to add a string subscript M to string SE like: <strong>SE<sub>M</sub></strong> to columnnames of my dataframe but when I use this code, I get NA instead of SE<sub>M</sub></p>
  <p>Code:</p>
  <pre><code>colnames(df) &lt;- c(&quot;Mean&quot;, expression = ('SE'['M']), &quot;Min&quot;, &quot;Max&quot;)
  </code></pre>
  <p>Output</p>
  <pre><code>Mean     NA    Min    Max
  </code></pre>
  <p>Later I have to add this dataframe to a word document using library(officer), so I call this in the next step:</p>
  <pre><code>body_add_table(doc, df, style = &quot;Table Professional) 
  </code></pre>