-
Notifications
You must be signed in to change notification settings - Fork 1
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
Input and output formats #2
Comments
How would you like to implement these data types? A |
Good question! I don't think having S3 classes for each would be worthwhile, since they all represent the same thing. What we need are The question is what the intermediate tabular format should look like. My preference would be something that follows tidy principles, i.e. a single table, where 1 row corresponds to 1 stratigraphic unit and all other observations are columns. Multiple relations can be expressed as nested vectors like those used in And yes, now you mention it we should provide |
Harris' law of stratigraphical succession is satisfied by transitive reduction of the DAG. The intermediate tabular format might want to serve up information to the transitive reduction function with as little fuss as possible. Transitive reduction is another feature igraph apparently lacks: igraph/igraph/issues/932 |
Ja - the main datatype (and maybe a list class for many of these objects?) has to be defined with all necessary class methods ( I like your harris12 sample datatset, @joeroe. List columns are fashionable and a cool feature of R data.frames. If we inherit from tibbles, we already have an excellent base class. @tsdye Are you aware of a way to access lisp code from R? I guess it would be great to access the functionality of |
@nevrome, yes, lisp can produce stand-alone binaries with a command line interface. It is a bit tricky to write code that works cross-platform, so I'm not sure about producing command line tools for every OS with the |
@tsdye A command line interface would be great! It's simple enough to call a command line tool from within R. Maybe we could even provide
|
(The comment I just deleted was a duplicate.) |
I'm actually in favour of reinventing wheels, as long as they're not too complicated. It's often easier than having to deal with external dependencies in the long run. But it might be a good stopgap. |
Either way is fine with me. I plan to work on |
Alright. I could offer to write some reader and writer functions for |
b1daaf3 added a |
As expected it is not very robust: #9 |
We should be able to read and write data to/from these formats:
hm
: http://www.tsdye.online/harris-matrix/data-tables/ArkMatrix
: https://gitlab.com/arklab/ArkMatrix/blob/master/docs/format_csv.mdBASP
/ArchEd
/Stratify
.LST files: http://archaeologic.al/wiki/Harris_Matrix#LSTWe probably won't be handle these formats:
ArchEd
– are in binary format, and the only software that could write/read them doesn't appear to be functional any more (see http://archaeologic.al/wiki/Harris_Matrix#ArchEd)The text was updated successfully, but these errors were encountered: