Re: [Rd] Problem following an R bug fix to integrate()

2013-07-18 Thread J. R. M. Hosking
R 2.11.1 version of integrate() restores concordance with the Fortran routines and correctly diagnoses the inability of the outer integral to achieve the requested accuracy. (And, btw, the Q computed above is actually closer to pi/4 than you will have been getting with the code that "worked well".) J. R. M. Hosking __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Quiz: How to get a "named column" from a data frame

2012-08-19 Thread J. R. M. Hosking
On 2012-08-18 11:03, Martin Maechler wrote: Today, I was looking for an elegant (and efficient) way to get a named (atomic) vector by selecting one column of a data frame. Of course, the vector names must be the rownames of the data frame. Ok, here is the quiz, I know one quite "cute"/"slick" an

[Rd] clusterSetRNGStream() question

2011-12-12 Thread J. R. M. Hosking
ps://svn.r-project.org/R/trunk/src/library/parallel/R/RngStream.R, line 45). However, if the intent is to restore the old seed then this assignment should be made in the global environment, e.g. via assign(".Random.seed", oldseed, envir = .GlobalEnv) J. R. M. Hosking > sessi

Re: [Rd] axis() ignores supplied value of argument mgp[3]?

2008-08-09 Thread J. R. M. Hosking
Prof Brian Ripley wrote: Have you looked at the current documentation on the svn server? Yes, that is a lot clearer. Thank you. J. R. M. Hosking __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] axis() ignores supplied value of argument mgp[3]?

2008-08-06 Thread J. R. M. Hosking
Prof Brian Ripley wrote: On Sun, 3 Aug 2008, J. R. M. Hosking wrote: Prof Brian Ripley wrote: What is true is that the line is set before the inline setting of mgp is processed: it all depends on what 'supplied' means, and you supplied two values. This is changed in R-patched no

Re: [Rd] axis() ignores supplied value of argument mgp[3]?

2008-08-03 Thread J. R. M. Hosking
which one (or, at least, I) would expect to place all the tick labels the same distance into the margin, does not in fact do so. My interpretation is that axis() is taking mgp[2] rather than the correct mgp[2]-mgp[3] as the relative position of the tick mark with respect to the axis line. J. R.

[Rd] axis() ignores supplied value of argument mgp[3]?

2008-07-19 Thread J. R. M. Hosking
Axis line is plotted at margin line 1, tick mark labels at line -3. Is this a bug? J. R. M. Hosking > R.version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 7.1 year 200

Re: [Rd] Editing the "..." argument

2008-07-06 Thread J. R. M. Hosking
e))) if (method!="L-BFGS-B" && is.null(dotargs$control$abstol)) dotargs$control <- c(dotargs$control,abstol=acc^2) # Call the optimization function, optim() opt <- do.call(optim,c(list(par=start[shape.pos]),fn=critfn, method=method,dotargs)) J. R. M. Hosking __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel