[Rd] R and Epi Info

2010-09-01 Thread Sullivan, Kevin M
Hello, I was wondering who to contact to see about somehow interconnecting or integrating the programs R and Epi Info. I have been involved in the development of Epi Info which is a software program developed by the Centers for Disease Control and Prevention (CDC) in Atlanta (www.cdc.gov/ep

Re: [Rd] R and Epi Info

2010-09-01 Thread peter dalgaard
On Aug 31, 2010, at 10:16 PM, Sullivan, Kevin M wrote: > Hello, > I was wondering who to contact to see about somehow interconnecting or > integrating the programs R and Epi Info. Well, first of all there is a mailing list, r-sig-...@lists.r-project.org. It is not very active, but I know t

[Rd] Speed improvement for Find() and Position()

2010-09-01 Thread Olaf Mersmann
Dear R-developers, both Find() and Position() (as the documentation mentions) are currently not optimized in any way. I have rewritten both functions in a more efficient manner by replacing the sapply() with a for() loop that terminates early if a match is found. Here is a patch against the cur

Re: [Rd] introspective capabilities

2010-09-01 Thread Christophe Rhodes
Duncan Murdoch writes: > On 27/08/2010 7:52 AM, Christophe Rhodes wrote: >> Hi, >> >> Is there any way, from R code, to perform introspection as to where >> certain names acquired their values? > > There's the "keep.source" option to source() and the optional > "srcfile" argument to parse() that

Re: [Rd] introspective capabilities

2010-09-01 Thread Duncan Murdoch
On 01/09/2010 9:27 AM, Christophe Rhodes wrote: Duncan Murdoch writes: > On 27/08/2010 7:52 AM, Christophe Rhodes wrote: >> Hi, >> >> Is there any way, from R code, to perform introspection as to where >> certain names acquired their values? > > There's the "keep.source" option to source() and

[Rd] S3 method for package listed in suggest/enhance

2010-09-01 Thread Hadley Wickham
Hi all, The profr package provides a method for displaying its output with ggplot: ggplot.print. You don't need this ggplot2 to use profr, so ggplot2 is listed under enhances in the DESCRIPTION file. If I have just S3method(ggplot, profr) in my NAMESPACE, then I get: ** testing if installed pac

[Rd] Installing a Tcl/Tk Extension on OSX

2010-09-01 Thread Adrian Waddell
Dear R-Community, I need the Img tk extension for my R package. It all works on my Ubuntu machine (libtk-img). However I experience a great deal of trouble when I try to install the package on OSX 10.5 or 10.6 (in fact I'm not able to do it). As I understand it, the ActiveTcl with it's teacup pac

[Rd] Looks like a bug in subsetting of a complicated object

2010-09-01 Thread Kjetil Halvorsen
I don't understand what is happening! I have a (large) object sim1, an matrix list with dim c(101,101) where each element is an 3*3 matrix. I am subsetting that with a matrix coo, of dim c(100,2), of unique indices, but the resulting object has length 99, not 100 as expected. Code reproducing the

Re: [Rd] introspective capabilities

2010-09-01 Thread Mark.Bravington
Hi Christophe You could also look at the 'foodweb' function in package 'mvbutils'-- and specifically 'callers.of'. It should do just what you want, though you do have to tell it which environments to search through. bye Mark -- Mark Bravington CSIRO Mathematical & Information Sciences Marine

Re: [Rd] Looks like a bug in subsetting of a complicated object

2010-09-01 Thread Peter Ehlers
On 2010-09-01 16:22, Kjetil Halvorsen wrote: I don't understand what is happening! I have a (large) object sim1, an matrix list with dim c(101,101) where each element is an 3*3 matrix. I am subsetting that with a matrix coo, of dim c(100,2), of unique indices, but the resulting object has length