On Nov 15, 2009, at 10:01 AM, Grzes wrote:
I heve got a list:
lista=list()
a=c(2,4,5,5,6)
b=c(3,5,4,2)
c=c(1,1,1,8)
lista[[1]]=a
lista[[2]]=b
lista[[3]]=c
lista
[[1]]
[1] 2 4 5 5 6
[[2]]
[1] 3 5 4 2
[[3]]
[1] 1 1 1 8
I would like to know where is number 5 (which line)?
For example I
But it's not what I wont
I need get a number of line my list
5 is in: list[[1]][1] and list[[2]][1] so
I would like to get a vector k = 1,2
David Winsemius wrote:
On Nov 15, 2009, at 10:01 AM, Grzes wrote:
I heve got a list:
lista=list()
a=c(2,4,5,5,6)
b=c(3,5,4,2)
c=c(1,1,1,8)
On Nov 15, 2009, at 10:47 AM, Grzes wrote:
But it's not what I wont
I need get a number of line my list
5 is in: list[[1]][1] and list[[2]][1] so
I would like to get a vector k = 1,2
I am sorry. I do not understand what you want the second solution
offered gave you numbers (and they
It's excellent!
Now, if I have a vector k=c( TRUE, TRUE, FALSE) how I may get lines from
list?
which (list ?? k) ?
David Winsemius wrote:
On Nov 15, 2009, at 10:47 AM, Grzes wrote:
But it's not what I wont
I need get a number of line my list
5 is in: list[[1]][1] and list[[2]][1]
The term line in R refers to a sequence of text ending in and
EOL marker, which I doubt is what you meant. Please stop referring
to the items or elements of a list as lines if you hope to
communicate with R-users.
lista[1:2]
[[1]]
[1] 2 4 5 5 6
[[2]]
[1] 3 5 4 2
lista[
5 matches
Mail list logo