[kepler-dev] [Bug 4407] - RExpression problems with named non-numeric vectors

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Thu Sep 24 12:00:30 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4407





------- Comment #3 from soong at nceas.ucsb.edu  2009-09-24 12:00 -------
The structure is in place to preserve attribute data and such.  Since
RExpression is already dumping attribute data for numeric vectors, it wouldn't
be a stretch to have it do that for other simple vectors (character and
logical).  We still have the problem that we've always had of dropping useful
information (names, dimensions, and such).  The proper alternative is to
correctly handle the passing of attribute data, but that leads us into that
whole RObject business (which could be done through Records and toggled with an
actor parameter, but is more work than I think anybody has time for at the
moment).

Here's my suggestion.  If it's a special data type (data.frame, list, factor,
etc.), then handle with whatever special handling we already have.  If it's a
basic data type (character, logical, or numeric), then insert "attributes(data)
<- NULL" prior to attempting to export.  That should dump all the stuff Kepler
can't handle.


More information about the Kepler-dev mailing list