Re: [Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread David Bauer
What would you say typically limits taskPR's approach, not finding enough instruction-level parallelism at the R script level, or the communications overhead (probably latency) of trying to make use of it? Depends on the specific function. The communication cost is significant, especially seri

Re: [Rd] lapply(NULL, ...) returns empty list

2008-09-04 Thread hadley wickham
On Thu, Sep 4, 2008 at 4:01 PM, Vadim Organovich <[EMAIL PROTECTED]> wrote: > Dear R-devel, > > Is there a reason that lapply(NULL, ...) returns the empty list, rather than > NULL? It seems intuitive to expect the latter, and rather counterintuitive > that lapply(list(), ... ) returns the same va

Re: [Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread Andrew Piskorski
On Thu, Sep 04, 2008 at 04:06:31PM -0400, David Bauer wrote: > taskPR was an attempt to get 'free' parallelism out of already > existing programs by using simple data dependencies to figure out > which individual statements in a program can be run in parallel. > The name comes from the description

[Rd] rgui.exe memory used (PR#12697)

2008-09-04 Thread cedric . carpentier
Full_Name: cedric Carpentier Version: 2.6.1 OS: windows 2000 Submission from: (NULL) (212.11.24.48) Hello, I will try to be comprehensive, but excuse me for my approximative english. I use R to extract data from Factset and then upload its to a personnal database. After the storage I create d

[Rd] lapply(NULL, ...) returns empty list

2008-09-04 Thread Vadim Organovich
Dear R-devel, Is there a reason that lapply(NULL, ...) returns the empty list, rather than NULL? It seems intuitive to expect the latter, and rather counterintuitive that lapply(list(), ... ) returns the same value as lapply(NULL, ...). > lapply(list(), function(x) 1) list() > lapply(NULL, fun

Re: [Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread David Bauer
> - taskPR: Sounds equivalent to snow. Also uses MPI underneath. Actually, it is very different from snow. taskPR was an attempt to get 'free' parallelism out of already existing programs by using simple data dependencies to figure out which individual statements in a program can be run in pa

[Rd] Erlang-style message-passing in R: Rmpi, Snow, NetWorkSpaces, etc.

2008-09-04 Thread Andrew Piskorski
I see about 7 different R packages for multi-process parallel programming. Which do you think is the best, most complete, and most robust to pick for general purpose Erlang-style message-passing programming in R, and why? First here's my use case, and then my analysis so far. I often have code w

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread EBo
Jeffrey Horner <[EMAIL PROTECTED]> said: > Also, study the source code in the littler project. As it is a simple > command line alternative to the R shell script and executable, it may > bring you up to speed on simple embedding and parsing; another example > at least. > > http://biostat.mc.va

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread Jeffrey Horner
EBo wrote on 09/04/2008 10:33 AM: Simon Urbanek <[EMAIL PROTECTED]> said: Why do you think is R_ParseVector not sufficient for this? That is what most of use use to achieve exactly what you describe... For something that even mimics the continuation behavior of the R console have a look at p

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread EBo
Simon Urbanek <[EMAIL PROTECTED]> said: > Why do you think is R_ParseVector not sufficient for this? That is > what most of use use to achieve exactly what you describe... > For something that even mimics the continuation behavior of the R > console have a look at parseString function in Rserv

[Rd] Request for consideration of small change to R documentation file names

2008-09-04 Thread Don MacQueen
I hesitate to spend R-core's time with such a small request, but here goes. On the Manuals page of CRAN one can download the primary R documentation in PDF format. All of the files but one have names beginning with "R-". The exception is the R Reference Index (fullrefman.pdf). This means that

[Rd] patch for graphics/R/plot.R that fixes incorrect tick positions

2008-09-04 Thread Sklyar, Oleg (London)
As I haven't got any replies to my earlier posts about incorrect tick positions in plot and matplot, here is the simplest patch to correct this issue (it fixes both plot with xlim/ylim and matplot). The plot.R was unchanged between 2.7 and current R-devel. It would be great if the patch could be (t

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread Simon Urbanek
On Sep 3, 2008, at 9:51 , EBo wrote: While doing some embedded programming and trying to figure out how to generate a hand coded SEXP equivalent of the line "t.test(x,conf.level=(1-p))$conf.int[2]" I had an idea for an addition to the embedded API. There are a number of hidden or static

[Rd] "incorrect" ticks in plot(with xlim/ylim) and matplot in R2.7.2, R2.8.0

2008-09-04 Thread Sklyar, Oleg (London)
Dear Martin, I understand the reasons behind PDF removal, but I actually added a description of the problem with R2.7+ before... (I cannot select which email client I use in the office). Now the problem remains and here is the illustration. The reason for setting xlim beyond the data range can be

Re: [Rd] PDFs on R-devel ...

2008-09-04 Thread Martin Maechler
> "OlegS" == Sklyar, Oleg \(London\) <[EMAIL PROTECTED]> > on Wed, 3 Sep 2008 13:47:56 +0100 writes: [.] OlegS> I attached three PDFs .. OlegS> Just in case PDFs are removed by the mail server here OlegS> is the description of the problem: [

Re: [Rd] calculating means per group

2008-09-04 Thread Prof Brian Ripley
On Thu, 4 Sep 2008, ONKELINX, Thierry wrote: Dear Luc, You should send this kind of questions to the general mailing list ([EMAIL PROTECTED]) instead of the developer list. To answer your question: have a look at ?by and ?aggregate And ?ave . HTH, Thierry -Oorspronkelijk bericht---

Re: [Rd] calculating means per group

2008-09-04 Thread Kjell Konis
Hi Luc, First of all, questions like this should really be asked on the R-help mailing list. The tapply function does what you want: > year [1] 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 Levels: 1 2 > area [1] a a a a a b b b b a a a a b b b b b Levels: a b > value [1] 20 25 28 31 23 25 28 23 19

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread EBo
I stumbled onto a near trivial solution... here is some example code: EBo -- #include #include #include #include SEXP LineEval (char *cmd) { SEXP ans; int error; ans = R_tryLineEval (cmd, R_GlobalEnv, &error); if (error) { fprintf (stderr, "Error evaluating

Re: [Rd] calculating means per group

2008-09-04 Thread ONKELINX, Thierry
Dear Luc, You should send this kind of questions to the general mailing list ([EMAIL PROTECTED]) instead of the developer list. To answer your question: have a look at ?by and ?aggregate HTH, Thierry ir. Thierry On

[Rd] calculating means per group

2008-09-04 Thread RFTW
Hi all I have a very basic question, yet i have not found how to do it. Suppose my dataset looks like this: YearAreavalue 1 a 20 1 a 25 1 a 28 1 a 31 1 a 23 1 b 25 1 b 28 1 b 23 1 b