'Is there a function in flextable package to get unique counts in column labels?

I am trying to get Treatment totals in the rtf file. Instead of manually adding in the set_header_labels function. Can we read from a saved dataset?

Thank You



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source