Re: [R] Identifying the bin where a value is included.

2013-09-18 Thread arun
r-help@r-project.org Cc: Sent: Wednesday, September 18, 2013 8:43 AM Subject: Re: [R] Identifying the bin where a value is included. Hello all, A very simple problem. Lets assume I  have an interval [0,1] and I split it in 6 bins having thresholds: pro= cbind(0, 0.3675509, 0.8618615, 0.9

Re: [R] Identifying the bin where a value is included.

2013-09-18 Thread Berend Hasselman
On 18-09-2013, at 14:43, ioanna ioannou wrote: > Hello all, > > A very simple problem. > > Lets assume I have an interval [0,1] and I split it in 6 bins having > thresholds: > pro= cbind(0, 0.3675509, 0.8618615, 0.9814291, 0.9975283, 0.9997789, > 1.000, > 0, 0.3662881, 0.86097

Re: [R] Identifying the bin where a value is included.

2013-09-18 Thread Jim Lemon
On 09/18/2013 10:43 PM, ioanna ioannou wrote: Hello all, A very simple problem. Lets assume I have an interval [0,1] and I split it in 6 bins having thresholds: pro= cbind(0, 0.3675509, 0.8618615, 0.9814291, 0.9975283, 0.9997789, 1.000, 0, 0.3662881, 0.8609743, 0.9812032, 0.997

Re: [R] Identifying the bin where a value is included.

2013-09-18 Thread ioanna ioannou
Hello all, A very simple problem. Lets assume I have an interval [0,1] and I split it in 6 bins having thresholds: pro= cbind(0, 0.3675509, 0.8618615, 0.9814291, 0.9975283, 0.9997789, 1.000, 0, 0.3662881, 0.8609743, 0.9812032, 0.9974822, 0.9997738, 1.000) dim(pro)<-c(7,2)