Skip to content
Prev 8836 / 63424 Next

minor error in documentation of pmax in base (PR#2513)

In a way it is not surprising, but some functions that operate on
vectors will coerce their outputs into vectors and others won't.
For example, try

m1 <- array(1:24,c(2,3,4))
sort(m1)
order(m1)

It would be nice to say when each of these things will happen.

For example, in the documentaition for ifelse, it says, "returns
a value with the same shape as".  This sort of language would be
helpful.

Jon
On 01/31/03 12:42, Liaw, Andy wrote:

  
    
Message-ID: <20030131125423.A9921@cattell.psych.upenn.edu>
In-Reply-To: <3A822319EB35174CA3714066D590DCD534BC0D@usrymx25.merck.com>; from andy_liaw@merck.com on Fri, Jan 31, 2003 at 12:42:43PM -0500