Thanks Martin Morgan. Thats works excellent on a large data .
Tanvir Ahamed
Göteborg, Sweden | mashra...@yahoo.com
- Original Message -
From: Martin Morgan
To: Mohammad Tanvir Ahamed ; R-help Mailing List
Sent: Tuesday, 28 June 2016, 11:07
Subject: Re: [R] Get the location of a
On 06/28/2016 03:03 AM, Mohammad Tanvir Ahamed via R-help wrote:
Can any one please help me. I will apply this for a very large list, about 400k
vector in a list and vector size is unequal and large
Example :
Input:
a <- c(1,3,6,9,25,100)
b<-c(10,7,20,2,25)
c<-c(1,7,5,15,25,300,1000)
d<-list(a,
nvir Ahamed via R-help
> Sent: Tuesday, June 28, 2016 9:03 AM
> To: R-help Mailing List
> Subject: [R] Get the location of a numeric element in a list
>
> Can any one please help me. I will apply this for a very large list, about
> 400k
> vector in a list and vector size is uneq
Hi Tanvir,
How about this:
value<-1
(1:length(d))[unlist(lapply(lapply(d,"==",value),any))]
Jim
On Tue, Jun 28, 2016 at 5:03 PM, Mohammad Tanvir Ahamed via R-help
wrote:
> Can any one please help me. I will apply this for a very large list, about
> 400k vector in a list and vector size is une
Can any one please help me. I will apply this for a very large list, about 400k
vector in a list and vector size is unequal and large
Example :
Input:
a <- c(1,3,6,9,25,100)
b<-c(10,7,20,2,25)
c<-c(1,7,5,15,25,300,1000)
d<-list(a,b,c)
Expected outcome :
# When looking for 1 in d
c(1,3)
#
5 matches
Mail list logo