[R] values in between

From: Eric C. Jennings <matheric_at_u.washington.edu>
Date: Thu 01 Dec 2005 - 16:39:12 EST


Hey there

I have two vectors:

y<- c(0.4, 0.0, 0.2, -0.2, -0.6, 0.2, 0.0, 0.0, 0.4, 0.4, 0.2)

In the vector y, I want to access (in the order given) all of the values in between each of the specific values of given.

I understand subsetting with y[i], but how do I get to ssomewhere in between -0.6 and 0.2?

Thanks
Eric Jennings
matheric@myuw.net



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 Thu Dec 01 17:01:30 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:25 EST