-
Notifications
You must be signed in to change notification settings - Fork 18
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
Any plans to incorporate .xlsx files? #272
Comments
Oh, that's a neat idea. @cboettig: also something for duckdbfs? |
duckdbfs is just a thin wrapper that doesn't really do anything itself. However https://duckdb.org/docs/guides/file_formats/excel_import.html |
Thanks for this.. How can this be implemented in R specifically? |
df <- duckdbfs::open_dataset("my_excel.xlsx", format="sf") |
Oh cool! Didn't know duckdbfs was an R package as well! Thanks for this! |
Is there a way to specify a specific sheet using the R approach? |
@johnmackintosh that's a good question. According to https://gdal.org/en/latest/drivers/vector/xls.html it should be opening each sheet as a layer. st_read takes a layer as an argument: https://duckdb.org/docs/extensions/spatial/functions.html#st_read. But it looks like duckdbfs isn't letting you pass additional arguments to the various read methods, which it definitely ought to do. cboettig/duckdbfs#28 |
@cboettig Thanks. Yes, I did try passing a layer argument, based on the duckdb excel_import docs you linked further up, but no joy. Thanks for looking into this, would be a total game-changer to be able to import a specific sheet. |
Hi,
I was wondering if there are any plans to incorporate to read *.xlsx files or any excel related files?
Regards,
Prasun
The text was updated successfully, but these errors were encountered: