search for: tp24194764p24198222

Displaying 1 result from an estimated 1 matches for "tp24194764p24198222".

2009 Jun 24
3
List subsetting
Hello, I have a question about list indexing. Lets say we have a list of 3 lists, each containing 3 different type elements: > a=replicate(3, list(list(c(1,1,1), diag(3), c(2,2,2)))) > a [[1]] [[1]][[1]] [1] 1 1 1 [[1]][[2]] [,1] [,2] [,3] [1,] 1 0 0 [2,] 0 1 0 [3,] 0 0 1 [[1]][[3]] [1] 2 2 2 [[2]] [[2]][[1]] [1] 1 1 1 [[2]][[2]] [,1] [,2] [,3]