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

Conversion function to handle multi-object files #129

Closed
leeper opened this issue Oct 11, 2016 · 1 comment
Closed

Conversion function to handle multi-object files #129

leeper opened this issue Oct 11, 2016 · 1 comment
Labels

Comments

@leeper
Copy link
Contributor

leeper commented Oct 11, 2016

If I want to update an XLS to XLSX, I have to loop over sheets. Similarly, if I want to convert an XLSX to Stata or CSV, looping is required. Because we may not know how many sheets there are a priori, this requires a while () or repeat loop, which is annoying. A solution would be a modified convert() function (or wrapper for convert()) that turns a multi-object file into another multi-object file or set of files. One could imagine this also working with multiple files in a directory as input or output.

@jsonbecker
Copy link
Collaborator

If this is mostly a matter of xlsx, we could use openxlsx::getSheetNames and lapply over sheets. Similarly passing a directory instead of a file could lapply over dir()

@leeper leeper closed this as completed Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants