This is following up on a previous topic I posted: In that one I learned how to add the column names to my transposed data frame using dplyr
, like so:
library(flextable)
library(dplyr)
iris %>%
head() %>%
t() %>%
as.data.frame() %>%
add_rownames() %>%
flextable()
Perhaps the keen eyes here might anticipate my follow-up: how do I hide/ set to blank the row numbers running along the columns of my transposed data frame? I'm doing the data manipulation in dplyr
and formatting it to go to Word via flextable
so are either of those two packages helpful for this?
Thanks very much.