Re: [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-14 Thread Ray Brownrigg
] Sent: Thursday, April 14, 2011 6:22 > PM > To: William Dunlap > Cc: r-help@r-project.org; Sunduz Keles; rcpp-devel; Kevin Ummel > Subject: Re: [R] Find number of elements less than some number: > Elegant/fastsolution needed > > My colleague Sunduz Keles once mentioned a simi

Re: [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-14 Thread Douglas Bates
mber that there is a findInterval function. > From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf > Of Douglas Bates [ba...@stat.wisc.edu] > Sent: Thursday, April 14, 2011 6:22 PM > To: William Dunlap > Cc: r-help@r-project.org; Sunduz Keles; rcpp-devel; Kevin

Re: [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-14 Thread Ravi Varadhan
22 PM To: William Dunlap Cc: r-help@r-project.org; Sunduz Keles; rcpp-devel; Kevin Ummel Subject: Re: [R] Find number of elements less than some number: Elegant/fastsolution needed My colleague Sunduz Keles once mentioned a similar problem to me. She had a large sample from a reference distri

Re: [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-14 Thread Douglas Bates
-help@r-project.org >> Subject: [R] Find number of elements less than some number: >> Elegant/fastsolution needed >> >> Take vector x and a subset y: >> >> x=1:10 >> >> y=c(4,5,7,9) >> >> For each value in 'x', I want to know how many

Re: [R] Find number of elements less than some number: Elegant/fastsolution needed

2011-04-14 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Kevin Ummel > Sent: Thursday, April 14, 2011 12:35 PM > To: r-help@r-project.org > Subject: [R] Find number of elements less than some number: > Elegan