dimnames names lost when subscripting (PR#257)

About this list Date view Thread view Subject view Author view Other groups

Subject: dimnames names lost when subscripting (PR#257)
weingessel@ci.tuwien.ac.at
Date: Wed 25 Aug 1999 - 20:46:08 EST


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:07 EST