Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rsheets/linen
General representation of spreadsheet data, plus some limited low-level operations on that data
https://github.com/rsheets/linen
Last synced: 8 days ago
JSON representation
General representation of spreadsheet data, plus some limited low-level operations on that data
- Host: GitHub
- URL: https://github.com/rsheets/linen
- Owner: rsheets
- License: other
- Created: 2016-04-04T16:52:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T15:18:46.000Z (about 8 years ago)
- Last Synced: 2024-08-13T07:15:21.415Z (4 months ago)
- Language: R
- Size: 45.9 KB
- Stars: 24
- Watchers: 6
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - rsheets/linen - General representation of spreadsheet data, plus some limited low-level operations on that data (R)
README
# linen
> Spreadsheet Data Structures
Spreadsheet data structures, common across different spreadsheet providers.
**Warning: This project is in the early scoping stages; do not use for anything other than amusement/frustration purposes**
## Installation
```r
devtools::install_github("rsheets/linen")
```## Design notes
We're using R6 so that we can mantain links back to the original sources, and so that sheets (and cell ranges) can mantain links back to workbooks that they are related to. Hopefully little of that will be totally apparent to the user.
The driver packages (googlesheets and rexcel) will `Import` this package; it will not depend directly on them. So we'll need to provide some hooks that can be used to refresh contents and things like that.
## Formatting
Formatting information is this bottomless pit that never stops; it's just not possible to store all the information that might possibly be used in a spreadsheet and at the same time allow it to be used in a consistent way. This is particularly the case before get a full set of data out of google sheets, because the set of information is not really known.
In Excel, formatting information is stored in a series of tables:
* A cell has an index to a "style"
* That style includes lookups to a number of other tables of information on fonts, fills, borders, etc.
* The underlying tables have a bunch of information about colours and the likeThe `linen_style` function standardises this in a way that hopefully scales. We have any number of tables which have any number of columns. Each table has an entry in the `lookup` table which is special.