Re: R-alpha: some minor inconsistencies

Kurt Hornik (hornik@ci.tuwien.ac.at)
Mon, 31 Mar 1997 11:13:33 +0200


Date: Mon, 31 Mar 1997 11:13:33 +0200
Message-Id: <199703310913.LAA26534@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <hornik@ci.tuwien.ac.at>
To: Bill Venables <wvenable@attunga.stats.adelaide.edu.au>
Subject: Re: R-alpha: some minor inconsistencies
In-Reply-To: <9703290309.AA24871@attunga.stats.adelaide.edu.au>

>>>>> Bill Venables writes:

> While transferring some old S-code I came across some minor
> inconsistencies between R and S that are probably more nuisance
> value than they would take to fix.  I report them here for
> reference, (but not in any campaigning mood, of course...)

> 1. No frame() command in R and so no graceful way to clear a
>    plotting screen.  (Or is there?)

plot.new()?

> 3. If dfr is a data frame with components "x", "y" and some
>    others then points(dfr) uses dfr as an xy-list in S but not in
>    R.  If there is some non-numeric component it actually fails
>    in R.  This may be S being a bit inconsistent, but the
>    behaviour is different.

> 5. In S you may extend a list by assigning to a new component.
>    For example if lis has components "x" and "y", only, you can
>    extend it by assigning to lis$z, lis["z"] or lis[, "z] (the
>    last if it is also a data frame).  In R only the first of
>    these works; the others give a "subscript out of bounds"
>    error.  (This may have been discussed while I was not paying
>    attention, in which case I apologize.)

Both seem to work in the 0.50 prereleases.  Can you please recheck when
0.50 is out?

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-