title: Transforming coefficient table in R for knitr::kable() display
body: <p>In <code>R</code> environment, I have a <code>tibble()</code> of parameter estimates from a set of models:</p>
  
  <pre><code>              Model       term           estimate
                &lt;chr&gt;      &lt;chr&gt;              &lt;chr&gt;
  1  Equation all_rev        ECT -0.175153366498138
  2  Equation all_rev  Intercept -0.813722280439735
  3  Equation all_rev all_rev -1 -0.552033103080694
  4  Equation all_rev    mood -1  0.149186002525841
  5  Equation all_rev zsc_med -1   9.67754263298424
  6  Equation all_rev zmq_med -1    4.8674015065453
  7  Equation all_rev all_rev -2 -0.286127265624132
  8  Equation all_rev    mood -2  0.278054170570161
  9  Equation all_rev zsc_med -2  -2.36086942618573
  10 Equation all_rev zmq_med -2  -2.22689475852024
     ...              ...     ... ... 
  </code></pre>
  
  <p>What would be an efficient way to transform the table into the formate similar to a contingency table? Such as:</p>
  
  <pre><code>              Model       term           estimate
  -------------------------------------------------
  1  Equation all_rev        ECT -0.175153366498138
                       Intercept -0.813722280439735
                      all_rev -1 -0.552033103080694
                         mood -1  0.149186002525841
                      zsc_med -1   9.67754263298424
                      zmq_med -1    4.8674015065453
                      all_rev -2 -0.286127265624132
                         mood -2  0.278054170570161
                      zsc_med -2  -2.36086942618573
                      zmq_med -2  -2.22689475852024
  2  Equation mood           ECT -0.175153366498138
                       Intercept -0.813722280439735
                      all_rev -1 -0.552033103080694
                         mood -1  0.149186002525841
                      zsc_med -1   9.67754263298424
                      zmq_med -1    4.8674015065453
                      all_rev -2 -0.286127265624132
                         mood -2  0.278054170570161
                      zsc_med -2  -2.36086942618573
                      zmq_med -2  -2.22689475852024
  ...                 ...         ...
  </code></pre>
  
  <p>Basically, if there is a repetition in row, I would like to only have the first row value displayed. Since this is not really a contingency table and the main cells are estimates, not frequency, it is not possible to use the <code>table()</code> command or <code>ftable()</code>.</p>
  
  <p>In particular, I would like to use <code>knitr::kable()</code> to knit the result into a table that can be displayed in an PDF document.</p>