What you are looking for is the findInterval() function.
Julian
W Eryk Wolski wrote:
> Hi,
>
> It's just some example code.. The application is uninteresting. I am
> searching for some functionality.
>
> X <- rnorm(100) //my data
>
> Y <- seq(-3,3,by=0.1) // bin boundaries.
>
> Now I would li
Thanks...
Thats exactly what I was looking for..
Eryk
On Nov 13, 2007 2:38 PM, Eik Vettorazzi <[EMAIL PROTECTED]> wrote:
> cut(X,Y,right=F)
>
> W Eryk Wolski schrieb:
>
> > Hi,
> >
> > It's just some example code.. The application is uninteresting. I am
> > searching for some functionality.
> >
Hi,
see ?cut
?pretty can also help to define "boundaries".
Regards,
Thibaut.
> Hi,
>
> It's just some example code.. The application is uninteresting. I am
> searching for some functionality.
>
> X <- rnorm(100) //my data
>
> Y <- seq(-3,3,by=0.1) // bin boundaries.
>
> Now I would like to gene
W Eryk Wolski wrote:
> Hi,
>
> It's just some example code.. The application is uninteresting. I am
> searching for some functionality.
>
> X <- rnorm(100) //my data
>
> Y <- seq(-3,3,by=0.1) // bin boundaries.
>
> Now I would like to generate a - list of factors, length as X...
> i.e.: all va
cut(X,Y,right=F)
W Eryk Wolski schrieb:
> Hi,
>
> It's just some example code.. The application is uninteresting. I am
> searching for some functionality.
>
> X <- rnorm(100) //my data
>
> Y <- seq(-3,3,by=0.1) // bin boundaries.
>
> Now I would like to generate a - list of factors, length as X..
Hi,
It's just some example code.. The application is uninteresting. I am
searching for some functionality.
X <- rnorm(100) //my data
Y <- seq(-3,3,by=0.1) // bin boundaries.
Now I would like to generate a - list of factors, length as X...
i.e.: all values in the range [-3,-2.9) have the same f
6 matches
Mail list logo