[18715] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] Feature or bug?

daemon@ATHENA.MIT.EDU (Paul Y. Peng)
Thu Jul 22 21:50:22 1999

Message-Id: <3797C919.E826A81E@math.mun.ca>
Date: Thu, 22 Jul 1999 23:14:57 -0230
From: "Paul Y. Peng" <ypeng@math.mun.ca>
Mime-Version: 1.0
To: s-news <s-news@wubios.wustl.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


In S-PLUS 3.3 (DEC Alpha) and S-PLUS 2000,

> z <- c("a"=1, "b"=2)
> lapply(z, function(x)names(x))
$a:
[1] "a"

$b:
[1] "b"

But in S-PLUS 5.1 (Linux),

> z <- c("a"=1, "b"=2)
> lapply(z, function(x)names(x))
$a:
NULL

$b:
NULL

Is this a new feature of S-PLUS 5? Do I miss anything in
S-PLUS 5? Thank you for your help.

Paul.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post