Please advise how to control rows order in flextable.
For example, in the table inside The Epidemiologist R Handbook the order of rows is arranged in the ascending way, and Other and Missing rows in the middle of the table. But I want to have these rows in the end. How to do this?
https://epirhandbook.com/en/tables-for-presentation.html
I expect that rows order in the table will looks like this:
Central Hospital
Military Hospital
Port Hospital
St. Mark's Maternity Hospital (SMMH)
Other
Missing
Total
](https://i.stack.imgur.com/0Vv6G.png)
The easiest way is to use the index of the rows you need:
#Or,probably, easier: