Re: [R] Question about quantile.default

2008-10-04 Thread Ben Bolker
Peter Dalgaard biostat.ku.dk> writes: [snip discussion of overrun in seq()] > > If I don't hear otherwise I will submit this as > > a bug to r-devel ... > > > It IS deliberate We discussed this when R was still in the toddler > stages. > > If you don't allow slight overruns like tha

Re: [R] Question about quantile.default

2008-10-04 Thread Gavin Simpson
On Fri, 2008-10-03 at 15:27 -0400, Lo, Ken wrote: > Hi all, > > I am running into a snag using quantile function in stats. Basically, I > don't understand why the loop below throws the error that it does. > > test.data <- rnorm(1000, 0, 1) > > for (i in seq(0.1, 0.001, 0.1)){ > te

Re: [R] Question about quantile.default

2008-10-04 Thread Peter Dalgaard
Ben Bolker wrote: Lo, Ken roche.com> writes: Hi all, I am running into a snag using quantile function in stats. Basically, I don't understand why the loop below throws the error that it does. test.data <- rnorm(1000, 0, 1) for (i in seq(0.1, 0.001, 0.1)){ test <- quantil

[R] Question about quantile.default

2008-10-03 Thread Lo, Ken
Hi all, I am running into a snag using quantile function in stats. Basically, I don't understand why the loop below throws the error that it does. test.data <- rnorm(1000, 0, 1) for (i in seq(0.1, 0.001, 0.1)){ test <- quantile(test.data, probs=seq(0,1,i)); print(i); }

Re: [R] Question about quantile.default

2008-10-03 Thread Ben Bolker
Lo, Ken roche.com> writes: > > Hi all, > > I am running into a snag using quantile function in stats. Basically, I > don't understand why the loop below throws the error that it does. > > test.data <- rnorm(1000, 0, 1) > > for (i in seq(0.1, 0.001, 0.1)){ > test <- quantile(tes

[R] Question about quantile.default

2008-10-03 Thread Lo, Ken
Hi all, I am running into a snag using quantile function in stats. Basically, I don't understand why the loop below throws the error that it does. test.data <- rnorm(1000, 0, 1) for (i in seq(0.1, 0.001, 0.1)){ test <- quantile(test.data, probs=seq(0,1,i)); print(i); }