I am currently using write_excel_csv2
from readxl
to write a data.frame in R to an excel file.
How can I write two data.frames to two worksheets within the same excel file?
To give an example, how can I combine the following two files to one?
write_excel_csv2(mtcars[1:10,], file_name1)
write_excel_csv2(mtcars[11:20,], file_name2)