Comments (6)
How would you distinguish a total line from a data line?
from readxl.
In the underlying xml (for an .xlsx) it has a table relationship xml which
includes the attribute totalsRowCount.
<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
id="1" name="Table1" displayName="Table1" ref="A1:B4" totalsRowCount="1">
...
</table>
Not sure if that's helpful in terms of how you're interacting with the spreadsheets. Example excel turned to it's zip
from readxl.
Does the ref A1:B4 include the totals row?
I'm not currently using the tables element at all, but it might make sense to expose this too - it might be nice to have a way to print out all the tables in each worksheet. Do you happen to know if tables happen automatically or do you create them manually?
from readxl.
Row 4 is the Total row, yes
Tables aren't automatic - you make them with the Format as Table option.
It's incredibly handy functionality. It takes care of formatting, adds
declarative syntax e.g. MyTable[Mycolum], and since it's all basically
dynamic named ranges under the hood, it greatly reduces risk of errors in
formulae.
Steph Locke
@SteffLocke https://twitter.com/stefflocke | LinkedIn
http://uk.linkedin.com/in/stephanielocke/ | itsalocke.com | 07951 787 022
SQL Cardiff http://www.meetup.com/Cardiff-SQL-Server-User-Group | CaRdiff
R http://www.meetup.com/Cardiff-R-User-Group/ | diff.NET
http://www.meetup.com/diff-NET/ | SQLRelay http://sqlrelay.co.uk
On 9 April 2015 at 20:56, Hadley Wickham [email protected] wrote:
Does the ref A1:B4 include the totals row?
I'm not currently using the tables element at all, but it might make sense
to expose this too - it might be nice to have a way to print out all the
tables in each worksheet. Do you happen to know if tables happen
automatically or do you create them manually?β
Reply to this email directly or view it on GitHub
#54 (comment).
from readxl.
@stephlocke Will you share a good example?
How to provide a readxl reprex
We're in a much better position to address your issue if you can provide a reprex (reproducible example). Provide as much of this as you can:
- An actual xls or xlsx file. Preferably stripped down to the minimal size and complexity to demonstrate your point. And, obviously, stripped of any sensitive data.
- A small bit of R code that uses readxl on the provided xls or xlsx file and demonstrates your point.
- Consider using the reprex package to prepare this. In addition to nice formatting, this ensures your reprex is self-contained. Currently GitHub-only, but going to CRAN soon.
- Any details about your environment that seem clearly relevant, such as operating system.
reprex(..., si = TRUE)
will append a standard summary, folded neatly away, at the bottom of your reprex.
How to provide the xls/xlsx file? In order of preference:
- Attach the file directly to your issue. Instructions are always at the bottom of the issue or comment box.
- Share via DropBox or Google Drive and provide the link in your issue.
- Explain you absolutely cannot provide a relevant file via github.com and offer to provide privately.
- Don't share a file and realize you're hoping for, e.g., a bug fix with no concrete example to go on.
from readxl.
We're not going to implement this in readxl at this time. The focus is clearly on reading static data.
I think this functionality makes more sense to build into packages that target tricky spreadsheets and sheet logic, e.g. tidyxl and the rsheets packages.
from readxl.
Related Issues (20)
- Upkeep for readxl
- Update errors to rlang 1.0.0
- read_excel unable to open file if the file is .xls but it was saved as .xml HOT 1
- Problems reading files with Windows path containing special characters
- FR: Check Excel sheets and consistency with readr
- Access is denied warning on valid paths that get read successfully
- installing readxl package to R 4.1.3 running in anaconda navigator HOT 1
- Can read_excel() allow reading of open Excel workbooks/sheets? HOT 3
- Scientific counting display issues
- Release readxl 1.4.3 HOT 1
- Force col_types for vector of known columns, default guess for other columns HOT 1
- readxl::read_excel fails with `Error: vector`
- col_types = 'text_as_shown' ? HOT 1
- Multible unaddressed libxls vulnerabilities HOT 4
- readxl fails with truncated dates
- Round-off error when using `col_type = "text"`
- Unexpected output when width option is greater than terminal width
- Can no longer install 'readxl': ERROR: compilation failed for package βreadxlβ HOT 3
- Extremely minor -- purrr::map_df used in the readxl-workflows.Rmd is superseded
- Can't install the readxl package. error: format not a string literal and no format arguments [-Werror=format-security] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readxl.