Re: [R] Remove empty list from list - remove only one row and make as matrix

2006-08-29 Thread Muhammad Subianto
t; Tel: +32/(0)16/336899 > Fax: +32/(0)16/337015 > Web: http://med.kuleuven.be/biostat/ > http://www.student.kuleuven.be/~m0390867/dimitris.htm > > > - Original Message - > From: "Muhammad Subianto" <[EMAIL PROTECTED]> > To: > Sent: Tu

Re: [R] Remove empty list from list - remove only one row and make as matrix

2006-08-29 Thread Dimitris Rizopoulos
: Re: [R] Remove empty list from list - remove only one row and make as matrix > Dear all, > After I work around, I found in my list of data with only one row > which > need to remove or make it as matrix. > Here I write again my other toy example: > x <- list(matrix(1:20, 5,

Re: [R] Remove empty list from list - remove only one row and make as matrix

2006-08-29 Thread Muhammad Subianto
Dear all, After I work around, I found in my list of data with only one row which need to remove or make it as matrix. Here I write again my other toy example: x <- list(matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4),matrix(1:20, 5, 4)) y <- list(c(1, -1, -1, 1, 1),c(