Re: [R] extract element from list by rownames

2011-04-12 Thread B77S
I'm thinking this isn't what you want.. but also: > data.frame((srMT[[3]][1]))[b,][2] filter.vel2 MK_SP10.2503257 SB1_SP1 0.2075117 SB4_SP1 0.2358855 B77S wrote: > > This probably is not ideal, but this works on a list of mine.. > > ## so you can see the structure of my l

Re: [R] extract element from list by rownames

2011-04-12 Thread B77S
This probably is not ideal, but this works on a list of mine.. ## so you can see the structure of my list > str(srMT) List of 4 $ mode : chr "discrete" $ ks.stat : chr "mean" $ observed :List of 4 ..$ filter: num [1:13, 1:4] 0.213 0.207 0.144 0.311 0.24 ... .. ..- attr(*, "dimnames

[R] extract element from list by rownames

2011-04-12 Thread Alfredo Alessandrini
Hi, I've a list of list. I want to extract an element by the rownames. I can extract it by: data[[1]][[1]][[4]][1] But I want to exctract it by a command like this: data[[1]][["B0"]][["smac"]][["cont"]][1] It's possible? Thanks, Alfredo > str(data) List of 1 $ :List of 4 ..$ :List