How to format/align LaTeX markup using R?
Some packages such as knitr::kable()
return relatively unformatted LaTeX markup such as in the example below:
R etable: how can I split the coefficients of a fixest object into two different columns?
I am working with the fixest package in R to run a regression model, and I am using etable to display the results. I want to split the coefficients into two different columns based on whether they contain the string “main” or “second”. Here is a reproducible example of the data and the model: