Closed japhir closed 5 years ago
Hello Ilja,
Thanks for your feedback. Indeed, there is no package in the tidyverse package to write Excel files, but there is a package named 'writexl' which implements Excel file writing in the tidyverse philosophy. We prefer this package.
One sheet
library(writexl)
write_xlsx(iris, "iris.xlsx")
Multiple sheets.
library(writexl)
write_xlsx(list(iris1 = iris, iris2 = iris), "iris.xlsx")
I will update the solutions manual.
Best, Jonathan
https://github.com/UtrechtUniversity/workshop-introduction-to-R-and-data/blob/512964245ca84cb9f6e43f37bbf828a189b2b6ec/modernR_solutions.Rmd#L115
Writing to excel is not possible within the tidyverse, but maybe encourage curious students to explore. It seems a little involved though, something like: