[R] How to implement "zero-overhead" code re-use (a la Python, Perl, etc.) in R?

2016-09-30 Thread Kynn Jones
I'm collaborating in a long-running research project that, over the years, has accummulated source code (written in-house) in several languages: Python, Perl, Mathematica, MATLAB. Recently I have started writing source code in R for this project, and I am having trouble incorporating it into our e

[R] How to google for R stuff?

2009-05-20 Thread Kynn Jones
Hi! I'm new to R programming, though I've been programming in other languages for years. One thing I find most frustrating about R is how difficult it is to use Google (or any other search tool) to look for answers to my R-related questions. With languages with even slightly more distinctive nam

Re: [R] How to google for R stuff?

2009-05-20 Thread Kynn Jones
Thank you all very much for the so many useful ideas and resources. KJ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] how to insert NULLs in lists?

2009-05-22 Thread Kynn Jones
I'm an experienced programmer, but learning R is making me lose the little hair I have left... > list(NULL) [[1]] NULL > length(list(NULL)) [1] 1 > x <- list() > x[[1]] <- NULL > x list() > length(x) [1] 0 >From the above experiment, it is clear that, although one can create a one-element list

Re: [R] how to insert NULLs in lists?

2009-05-23 Thread Kynn Jones
On Fri, May 22, 2009 at 7:32 PM, wrote: > Hi Kynn: this oddity is discussed in Patrick Burn's document called "The R > Inferno". I don't recall the fix so I'm not sure if below is the same as > what his book says to do but it seems to do what you want. Wow, I sure hit the jackpot with this link

[R] Fast JSON <-> R converter?

2009-06-12 Thread Kynn Jones
Is there a *fast* converter between JSON and R? I'm aware of the rjson package, but it is implemented in R, and it is too slow for my purposes. TIA! kynn [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

Re: [R] Fast JSON <-> R converter?

2009-06-13 Thread Kynn Jones
On Fri, Jun 12, 2009 at 7:16 PM, Duncan Temple Lang wrote: > > It is not so much that rjson is implemented in R that makes it slow, just > that it does not use vectorized operations. > > > The package RJSONIO > > http://www.omegahat.org/RJSONIO > Great, I'll check it out. Thanks! kynn