From dan at bolser.co.uk  Thu Nov  4 19:08:08 2004
From: dan at bolser.co.uk (dan@bolser.co.uk)
Date: Thu Nov  4 19:08:13 2004
Subject: [Rd] Bug report (PR#7341)
Message-ID: <20041104180808.174B110F56@slim.kubism.ku.dk>

Full_Name: Dan B
Version: na
OS: na
Submission from: (NULL) (80.6.127.185)


I can't log into the bug tracker (I can't find where to register / login).


In this way I can't add the following context diff (hopefully in the right
order) for my changes to the matrix.Rd...

Hmm... I guess this should be a separate report anyway...

The first diff explains how the dimnames list should work, and the second diff
gives an example of using the dimnames list. (no equivelent example exists, and
where better than the matrix man page to show this off).

*** ./matrix.Rd 2004-11-03 14:44:13.000000000 +0000
--- Original/matrix.Rd  2004-11-03 14:48:40.000000000 +0000
***************
*** 28,32 ****
      filled by rows.}
    \item{dimnames}{A \code{\link{dimnames}} attribute for the matrix: a
!     \code{list} of length 2.}
    \item{x}{an \R object.}
  }
--- 28,32 ----
      filled by rows.}
    \item{dimnames}{A \code{\link{dimnames}} attribute for the matrix: a
!     \code{list} of length 2 giving the row and column names respectivly.}
    \item{x}{an \R object.}
  }
***************
*** 63,66 ****
--- 63,77 ----
  warpbreaks[1:10,]
  as.matrix(warpbreaks[1:10,]) #using as.matrix.data.frame(.) method
+
+ # Example of setting row and column names
+ data <- matrix(c(16522,34057,40949,
+                  19924,46032,55185),
+                nrow=2, ncol=3,
+                byrow=TRUE,
+                dimnames = list(
+                  c('PDB','MSD'),
+                  c('Entry','Chain','Domain')
+                  )
+                )
  }
  \keyword{array}


[Rd] Bug report (PR#7341)
dan@bolser.co.uk