Steve Lianoglou-6 wrote:
> 
> 
> On Jul 21, 2009, at 11:28 AM, Dieter Menne wrote:
> 
> Or, more simply:
> 
> R> a <- c(0.0000, 0.0909, 0.0909, 0.1818, 0.2727, 0.3636, 0.4545,  
> 0.6363, 0.0000, 0.0000, 0.0000, 0.000)
> R> b <- c(3, 5, 7, 18, 43, 85, 91, 98, 100, 130, 230, 487)
> R> b[a > .5]
> [1] 98
> 
> 

No, that's why I changed the values in a: when there are more than one >
0.5. 

Dieter

-- 
View this message in context: 
http://www.nabble.com/Select-value-according-two-vectors...-tp24589588p24591618.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to