[R] probably need to se sapply but i can't get it

From: <markleeds_at_verizon.net>
Date: Tue 27 Jun 2006 - 03:40:19 EST


Hi : I think I need to use sapply but I can't figure this out.

Suppose I have two vectors : tempa ( 4, 6,10 ) and tempb ( 11,23 ,39 )

I want a function that returns 4:11,6:23 and 10:39 as vectors.

I tried :

sapply(1:length(tempa) function (z) seq(tempa[z],tempb[z])

but i got 3 really strange vectors back in the sense that the numbers in them did not make no sense to me. obviously, i must be doing something wrong. thanks a lot.

                                       mark

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 27 03:48:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 27 Jun 2006 - 06:12:50 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.