[Rd] unlist on nested pairlists

2008-08-20 Thread Dan Davison
unlist(recursive=FALSE) returns NULL elements when passed a nested pairlist containing non-NULL data: x - pairlist(pairlist(1:2)) unlist(x, recursive=FALSE) ## [[1]] ## NULL version 2.7.2 RC (2008-08-18 r46382) under linux I'm unaware of any motivation for constructing the above data structure,

[Rd] relist.Rd patch

2008-08-16 Thread Dan Davison
There are a few typos in the documentation for relist(). I've also made a few other changes to the file which I believe are improvements. I've attached a patch against the version under the 'trunk' branch on the svn server checked out today. It was produced by diff -u

Re: [Rd] HOW TO AVOID LOOPS

2008-04-12 Thread Dan Davison
On Sat, Apr 12, 2008 at 01:30:13PM -0400, Vincent Goulet wrote: Le sam. 12 avr. à 12:47, carlos martinez a écrit : Looking for a simple, effective a minimum execution time solution. For a vector as: c(0,0,1,0,1,1,1,0,0,1,1,0,1,0,1,1,1,1,1,1) To transform it to the following vector

Re: [Rd] HOW TO AVOID LOOPS

2008-04-12 Thread Dan Davison
On Sat, Apr 12, 2008 at 06:45:00PM +0100, Dan Davison wrote: On Sat, Apr 12, 2008 at 01:30:13PM -0400, Vincent Goulet wrote: Le sam. 12 avr. à 12:47, carlos martinez a écrit : Looking for a simple, effective a minimum execution time solution. For a vector as: c

Re: [Rd] assigning NULLs to elements of a list

2008-02-12 Thread Dan Davison
On Tue, Feb 12, 2008 at 11:06:59AM +, Oleg Sklyar wrote: Dear developers: I have just came across an (unexpected to me) behaviour of lists when assigning NULLs to list elements. I understand that a NULL is a valid R object, thus assigning a NULL to a list element should yield exactly

[Rd] Rscript argument processing minor bug with -g

2008-01-05 Thread Dan Davison
I think there's a minor bug in the argument-processing carried out by Rscript. The effect is that if one passes -g as a flag to the script, it is erroneously exposed to the main executable's argument processing and therefore generates a message about not being able to comply with the request

[Rd] ?eigen documentation suggestion

2007-11-29 Thread Dan Davison
from ?eigen symmetric: if 'TRUE', the matrix is assumed to be symmetric (or Hermitian if complex) and only its lower triangle is used. If 'symmetric' is not specified, the matrix is inspected for symmetry. I think that could mislead a naive reader as it suggests

Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Dan Davison
Hi Ben, On Tue, Jun 26, 2007 at 11:58:35AM -0400, Benjamin Tyner wrote: R-devel, When I run the following code on the attached file, tmp - scan(C:/temp.csv, what=list(character,numeric), sep=,) Then tmp[[2]] is a character vector. My impression from the help file