Re: [R] Intervals in function cut

2011-11-09 Thread JulioSergio
jim holtman gmail.com> writes: ... Thanks Jim, very useful your information, Sergio. __ 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 pro

Re: [R] Intervals in function cut

2011-11-07 Thread Julio Sergio
Duncan Murdoch gmail.com> writes: ... Thanks Duncan! __ 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-c

Re: [R] Intervals in function cut

2011-11-07 Thread jim holtman
In stepping through 'cut.default' that is called, I get the following interval: -0.008 0.994 1.996 2.998 4.000 5.002 6.004 7.006 8.008 In printing out to three significant digits, you will have "(0.994, 2]" or "(2,3]" as you see in the factors. If instead you used: cut(x, b = 8, dig.l

Re: [R] Intervals in function cut

2011-11-07 Thread Duncan Murdoch
On 11-11-07 7:48 PM, JulioSergio wrote: When I was studying the function cut I found this example: x<- rep(0:8, tx0) x [1] 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 4 4 4 5 5 5 5 5 5 5 5 5 5 6 [39] 6 6 6 6 7 7 7 8 8 8 8 8 cut(x, b = 8) [1] (-0.008,0.994] (-0.008,0.994] (-0.008,0.9

[R] Intervals in function cut

2011-11-07 Thread JulioSergio
When I was studying the function cut I found this example: > x <- rep(0:8, tx0) > x [1] 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 4 4 4 5 5 5 5 5 5 5 5 5 5 6 [39] 6 6 6 6 7 7 7 8 8 8 8 8 > cut(x, b = 8) [1] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] [6]