[Rd] Extending deriv3()

2007-10-14 Thread Thomas Yee
Hello, I was wondering if the functions deriv3(), deriv() etc. could be extended to handle psigamma() and its special cases (digamma(), trigamma() etc.). From the error message it seems that 'psigamma' needs to be added to the derivatives table. This might be easy since psigamma() has a deriv argu

[Rd] data.frame row.names=NULL with named vector

2007-10-14 Thread Martin Morgan
A minor issue with data.frame is a change introduced leading to R 2.5.0, where row.names=NULL (i.e., do not name rows) is not honored with a named vector > x <- letters[1:3] > names(x) <- x > data.frame(x, row.names=NULL) x a a b b c c and a slightly more subtle example > data.frame(y=1:3, x,

Re: [Rd] bug (?) in [.data.frame with matrix-like indexing

2007-10-14 Thread Peter Dalgaard
Uwe Ligges wrote: > Consider in R-2.6.0 (also R-patched from yesterday): > > iris[1, c(TRUE, FALSE, FALSE, FALSE, FALSE)] > ## Error in .subset2(xx, j) : recursive indexing failed at level 2 > > iris[1, c(FALSE, FALSE, FALSE, FALSE, TRUE)] > ## Error in .subset2(xx, j) : attempt to select less tha

Re: [Rd] Inconsistent behavior of sQuote and dQuote

2007-10-14 Thread cstrato
Dear Duncan and Marc Thank you for your comments, and please allow me to express my personal opinion: I have read the comments of Markus Kuhn mentioned in the help file to sQuote: http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html Since R is a programming language, the behavior should in my opinio

Re: [Rd] Inconsistent behavior of sQuote and dQuote

2007-10-14 Thread Marc Schwartz
On Sun, 2007-10-14 at 11:56 -0400, Duncan Murdoch wrote: > On 14/10/2007 10:44 AM, cstrato wrote: > > Dear all > > > > When comparing sQuote("text") and dQuote("text") on MacOS X and Linux FC4 > > I get an inconsistent behavior (using the new release version R-2.6.0): > > > > sQuote: On Mac I get

Re: [Rd] Inconsistent behavior of sQuote and dQuote

2007-10-14 Thread Duncan Murdoch
On 14/10/2007 10:44 AM, cstrato wrote: > Dear all > > When comparing sQuote("text") and dQuote("text") on MacOS X and Linux FC4 > I get an inconsistent behavior (using the new release version R-2.6.0): > > sQuote: On Mac I get the correct result "'text'", but on FC4 the > incorrect result "`text

[Rd] bug (?) in [.data.frame with matrix-like indexing

2007-10-14 Thread Uwe Ligges
Consider in R-2.6.0 (also R-patched from yesterday): iris[1, c(TRUE, FALSE, FALSE, FALSE, FALSE)] ## Error in .subset2(xx, j) : recursive indexing failed at level 2 iris[1, c(FALSE, FALSE, FALSE, FALSE, TRUE)] ## Error in .subset2(xx, j) : attempt to select less than one element i.e. matrix-lik

[Rd] Inconsistent behavior of sQuote and dQuote

2007-10-14 Thread cstrato
Dear all When comparing sQuote("text") and dQuote("text") on MacOS X and Linux FC4 I get an inconsistent behavior (using the new release version R-2.6.0): sQuote: On Mac I get the correct result "'text'", but on FC4 the incorrect result "`text´". dQuote: On Mac I get the correct result "\"text\"