Sherlock, Ric wrote:
Also it seems that something has changed because the example command
given on the wiki page doesn't give the result shown on the wiki. I get
this instead.
Rcmd 'x=factor(c("one","two","three","four"))'
Rget 'x'
+-------------------------------------------------------------+-------+
|+-----------------------------------+---------------+-------+|2 4 3 1|
||+----+---+-----+------------------+|+------+------+|`levels|| |
|||four|one|three|+------------+---+|||factor|`class|| || |
||| | | ||package:MASS|two|||+------+------+| || |
||| | | |+------------+---+|| | || |
||+----+---+-----+------------------+| | || |
|+-----------------------------------+---------------+-------+| |
+-------------------------------------------------------------+-------+
The wiki example works correctly for me, tested with R 2.6.2.
The result you get looks odd - the levels really are the list four, one,
three, two (in alpha order), so the term "package:MASS" looks spurious.
Do you get this term in other uses of Rserve? Do you have your own
version of R (MASS standing for Massey), so this is a signature being
added to the internal representation?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm