I am making a report in .rmd to export to .docx and to mount the tables I am using the "flextable" package, which works for this type of export. The problem is that when I mount the tables the function adds three decimal places and I can not remove it. Example:
df <- data.frame(a = c(0,1,2,3,4,5), b = c("x", "y", "z", "w", "j", "k"))
df %>%
flextable::regulartable()
How can I remove the decimal places from column a?