Re: [R] rbind to array members‏

2009-10-19 Thread Another Oneforyou
(resent as hotmail really cannot format plaintext, but I've just read Tony Plate's message that what I'd like to do might not be possible) > > library(abind) ## array binding I've looked into using abind() but it seems I might not understand it properly. I can build my 2 table array and insert a

Re: [R] rbind to array members

2009-10-19 Thread Another Oneforyou
<4adbca02.8020...@temple.edu> Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 >=20 > library(abind) ## array binding I've looked into using abind()=2C but it seems I might not understand it pr= operly. I can build my 2 table arra

[R] rbind to array members

2009-10-18 Thread Another Oneforyou
Hi, I would like to add rows to arbitrary tables within a 3dimensional array. I can directly add data to an existing row of a table: > x <- array(0,c(1,3,2))> x[,,1] <- c(1,2,3) And I can even add a row to the table and assign to another object. > y <- rbind(x[,,1], c(4,5,6)) and 'y' is what I wan

[R] debug(sum) error

2009-10-10 Thread Another Oneforyou
Hi, I'm working through "R-debug-tools.pdf" and on page 7 it describes doing: Browse[1]> debug(sum) ## Flag sum for debugging however, when I try this, I get: Browse[1]> debug(sum)Error in debug(fun) : argument must be a closure Does anyone know why I get this error, and how to work around it? Tha