Hi Arun, thank-you for your assistance.

I'm sorry that I did not provide a reproducible example. I will provide
a reproducible example the next time.

Using the next to last line of your code I was able to get what I needed
without using the for loop. 

Thanks again.

Irucka


<-----Original Message-----> 
>From: arun kirshna [via R] [ml-node+s789695n4659154h50@n4.nabble.com]
>Sent: 2/20/2013 8:49:22 AM
>To: iruckaE@mail2world.com
>Subject: Re: subsetting with greater than and less than indexing
>
>Hi, 
>It is better to provide a reproducible example. So, not sure about the
problem 
>
>Using another example: 
>mat1<-matrix(signif(c(1.200407,1.861941,1.560613,2.129241,2.047772,1.78
4105,1.777159,1.988596,2.163199,2.446993,3.593623,5.706672),digits=3),nc
ol=1)
>
> list1<- list(mat1,mat1,mat1) 
>list2<-lapply(list1,function(x)
>data.frame(date1=format(seq.Date(as.Date("1911.01.01",format="%Y.%m.%d"
),by="month",length.out=12),format="%Y.%m.%d"),value=x,stringsAsFactors=
FALSE))
>
> res<-lapply(seq_along(list2),function(i) subset(list2[[i]],value>1.99&
>value<2.45)) 
>res[[1]] 
># date1 value 
>#4 1911.04.01 2.13 
>#5 1911.05.01 2.05 
>#9 1911.09.01 2.16 
>A.K. 
>
>
>
>
>If you reply to this email, your message will be added to the
discussion below:
>http://r.789695.n4.nabble.com/subsetting-with-greater-than-and-less-tha
n-indexing-tp4659142p4659154.html
>
>To unsubscribe from subsetting with greater than and less than
indexing, click here.
>NAML 


<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>



--
View this message in context: http://r.789695.n4.nabble.com/subsetting-with-greater-than-and-less-than-indexing-tp4659142p4659204.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

