[R] Importing and exporting threedimensional arrays
ulrik.stervbo at gmail.com
Fri Nov 11 14:22:15 CET 2016
I think that setting the ascii argument in the save command to TRUE might
give a human readable file.
If it'll work for what you want to do later, I don't know
On Fri, 11 Nov 2016 at 14:13 Ferri Leberl <ferri.leberl at gmx.at> wrote:
> Thanks for your answer.
> I'm afraid it doesn't.
> The planned workflow should be:
> Somebody delivers me a table containing the essential relations of an
> XML-schema in form of a list that should, once it is functional, be
> generated out of R. So I need a form that is as universal as possible —
> therefore I thought of a tabular separated list.
> If I make an array:
> save it
> and read it in the bash
> cat feld
> I receive
> So I guess it will be a science of its own to understand, how the file is
> So I need either a format that allows to easily parse the import 3D-Matrix
> outside R, or I need any good idea how to avoid the third dimension (e.g.,
> might it function to use a second separation character within the collumns
> which may contain several items?
> Thank you in advance!
> Have a pleasant weekend.
> Yours, Ferri
> Gesendet: Freitag, 11. November 2016 um 12:02 Uhr
> Von: "Rui Barradas" <ruipbarradas at sapo.pt>
> An: "Ferri Leberl" <ferri.leberl at gmx.at>, "r-helpr-project.org" <
> r-help at r-project.org>
> Betreff: Re: [R] Importing and exporting threedimensional arrays
> You can save 3D objects (or objects of any form or shape) by using ?save.
> You would then retrieve them with ?load.
> Hope this helps,
> Rui Barradas
> Em 11-11-2016 09:36, Ferri Leberl escreveu:
> > Dear all,
> > I want to process a list of XML-Elements.
> > In one dimension the elements are listed; in the other their respective
> properties (name, comment, parent, children, attributes).
> > I am writing a script that processes such tables, and another one that
> produces sample tables to test the first script.
> > So the first script should import tabular-separated lists, and the
> second should export them with write.table (or anything better you suggest
> > As long as we stay two dimensional I see no difficulties.
> > However, there can be several children and several attributes. So my
> idea was to add a third dimension — but some tests I did showed me that e.g.
> > produces a 2D-tsv.
> > So, how can I handle the fact, that there may be several items in a
> children resp. atrribute field?
> > Thank you in advance!
> > ______________________________________________
> > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help