Re: [R] Tables from Rmarkdown to Word Document - using huxtables

2019-12-11 Thread Ashim Kapoor
On Wed, Dec 11, 2019 at 9:11 PM Rui Barradas wrote: > Hello, > > This works for me: > > > library(dplyr) > library(huxtable) > library(flextable) > library(officer) > > hx <- iris %>% >group_by(Species) %>% >summarise_if(is.numeric, mean) %>% >as_hux() %>% >add_colnames() %>% >

Re: [R] Tables from Rmarkdown to Word Document - using huxtables

2019-12-11 Thread Rui Barradas
Hello, This works for me: library(dplyr) library(huxtable) library(flextable) library(officer) hx <- iris %>% group_by(Species) %>% summarise_if(is.numeric, mean) %>% as_hux() %>% add_colnames() %>% set_bold(1, , TRUE) %>% set_bottom_border(1, , 1) %>% set_width(0.99) %>% set_c

Re: [R] Data Structure to Unnest_tokens in tidytext package

2019-12-11 Thread Eric Berger
Hi Sarah, I looked at the documentation that you linked to. It contains the step text_df <- tibble(line = 1:4, text = text) before it does the step text_df %>% unnest_tokens(word, text) So you may be missing a step. Best, Eric On Tue, Dec 10, 2019 at 9:05 PM Sarah Payne wrote: > > Hi--I'm

[R] Tables from Rmarkdown to Word Document - using huxtables

2019-12-11 Thread Ashim Kapoor
Dear All, I am reading this :- https://hughjonesd.github.io/huxtable/huxtable.html I quote from the above: If you want to create Word or Powerpoint documents, install the flextable package from CRAN. Huxtables can then be automatically printed in W