From weingessel@ci.tuwien.ac.at  Wed Aug 25 11:46:08 1999
From: weingessel@ci.tuwien.ac.at (weingessel@ci.tuwien.ac.at)
Date: Wed, 25 Aug 1999 12:46:08 +0200 (MET DST)
Subject: dimnames names lost when subscripting (PR#257)
Message-ID: <199908251046.MAA03884@pubhealth.ku.dk>

When subscripting an array with dimnames names, these names are lost.

For example:
> a <- array(0,c(2,2,2));
> dimnames(a)<-list(hansi=1:2, pepi=c("a","b"), karli=3:4)
> dimnames(a)
$hansi
[1] "1" "2"

$pepi
[1] "a" "b"

$karli
[1] "3" "4"

BUT

>  dimnames(a[,,1])
[[1]]
[1] "1" "2"

[[2]]
[1] "a" "b"




--please do not edit the information below--

Version:
 platform = i686-unknown-linux
 arch = i686
 os = linux
 system = i686, linux
 status = Under development (unstable)
 status.rev = 0
 major = 0
 minor = 65.0
 year = 1999
 month = July
 day = 08
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


dimnames names lost when subscripting (PR#257)
weingessel@ci.tuwien.ac.at