Re: [R] Reducing the dimension of a list object

2009-12-11 Thread Uwe Ligges
Bogaso wrote: Please consider following code : set.seed(1) res - vector(list) for (i in 1:5) { res1 - vector(list) res1[[1]] - letters[1:5] res1[[2]] - rnorm(5) res1[[3]] - rnorm(5); res[[i]] - res1 } res[[1]] # Now I want to reduce the dimension of res through creating a data

[R] Reducing the dimension of a list object

2009-12-10 Thread Bogaso
Please consider following code : set.seed(1) res - vector(list) for (i in 1:5) { res1 - vector(list) res1[[1]] - letters[1:5] res1[[2]] - rnorm(5) res1[[3]] - rnorm(5); res[[i]] - res1 } res[[1]] # Now I want to reduce the dimension of res through creating a data frame like that mat