Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Excel Workbook with Multiple Sheets #123

Open
josh1400 opened this issue Jan 30, 2020 · 2 comments
Open

Save Excel Workbook with Multiple Sheets #123

josh1400 opened this issue Jan 30, 2020 · 2 comments

Comments

@josh1400
Copy link

I would like to save several data sets as multiple sheets within one Excel workbook.

Currently, I read specific sheets in an Excel workbook and make updates to the data within Radiant.
I then save those updated data sets as csv files and manually copy and paste that data into the right sheet of the Excel workbook. I could copy from Radiant to save some steps, but I keep the csv files as history.

I could also write the data sets into SQL tables and connect each sheet of the Excel workbook to the correct table and always have a connection to the updated data. However, that's a little too intensive for temporary processes.

Ideally, there's an R function that I just can't find. If that doesn't exist, Radiant would be great if I could select multiple data sets and save them to an Excel workbook in the data>manage section.

@vnijs
Copy link
Contributor

vnijs commented Jan 30, 2020

I'll think about that. In the meantime you can use something like the below in Report > Rmd. FYI iris and mtcars are default datasets that are always available in R

library(writexl)
write_xlsx(list(sheet1 = iris, sheet2 = mtcars), path = "~/Desktop/file_with_sheets.xlsx")

@josh1400
Copy link
Author

That solves my issue! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants