[Rd] stopping finalizers

2013-02-12 Thread Thomas Lumley
Is there some way to prevent finalizers running during a section of code? I have a package that includes R objects linked to database tables. To maintain the call-by-value semantics, tables are copied rather than modified, and the extra tables are removed by finalizers during garbage collection.

Re: [Rd] Regression stars

2013-02-12 Thread Hervé Pagès
Hi Duncan, On 02/12/2013 11:19 AM, Duncan Murdoch wrote: On 12/02/2013 1:47 PM, Hervé Pagès wrote: On 02/12/2013 08:20 AM, peter dalgaard wrote: > > On Feb 12, 2013, at 17:05 , Brian Lee Yung Rowe wrote: > >> >> I thought that the default was the way it was for performance reasons. For large da

Re: [Rd] Regression stars

2013-02-12 Thread Duncan Murdoch
On 12/02/2013 1:47 PM, Hervé Pagès wrote: On 02/12/2013 08:20 AM, peter dalgaard wrote: > > On Feb 12, 2013, at 17:05 , Brian Lee Yung Rowe wrote: > >> >> I thought that the default was the way it was for performance reasons. For large data.frames or repeated applications, using factors should b

Re: [Rd] Regression stars

2013-02-12 Thread Hervé Pagès
On 02/12/2013 08:20 AM, peter dalgaard wrote: On Feb 12, 2013, at 17:05 , Brian Lee Yung Rowe wrote: I thought that the default was the way it was for performance reasons. For large data.frames or repeated applications, using factors should be faster for non-trivial strings. I think not.

Re: [Rd] Contribution

2013-02-12 Thread Claudia Beleites
Hi Parthasarathy, IMHO the easiest way to contribute to R is contributing to an R package. And one way to do that is to apply for a Google Summer of Code project. I guess activities about that will start soon, as the program was just announced, and they will take place at a separate email list: g

Re: [Rd] Regression stars

2013-02-12 Thread Simon Urbanek
On Feb 12, 2013, at 11:05 AM, Brian Lee Yung Rowe wrote: > > I thought that the default was the way it was for performance reasons. For > large data.frames or repeated applications, using factors should be faster > for non-trivial strings. > >> fs <- c('apple','peach','watermelon','spinach','

Re: [Rd] Regression stars

2013-02-12 Thread Tim Triche, Jr.
I think it may have been John D. Cook who first observed that p-values are linearly correlated with the amount of time remaining on a grant. Perhaps a suitable transform would reveal an ordinal relationship with stars. On Tue, Feb 12, 2013 at 7:03 AM, Ravi Varadhan wrote: > They are "reaching

Re: [Rd] Regression stars

2013-02-12 Thread Ravi Varadhan
They are "reaching for the stars". Pardon my jest, but I couldn't resist. Ravi -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Uwe Ligges Sent: Tuesday, February 12, 2013 10:01 AM To: Frank Harrell Cc: r-devel@r-project.org Sub

[Rd] get and exists are not vectorized

2013-02-12 Thread Patrick Burns
Here is the current behavior (in 2.15.2 and 3.0.0): > exists(c('notLikely', 'exists')) [1] FALSE > exists(c('exists', 'notLikely')) [1] TRUE > get(c('notLikely', 'exists')) Error in get(c("notLikely", "exists")) : object 'notLikely' not found > get(c('exists', 'notLikely')) function (x, where = -

Re: [Rd] Regression stars

2013-02-12 Thread peter dalgaard
On Feb 12, 2013, at 17:05 , Brian Lee Yung Rowe wrote: > > I thought that the default was the way it was for performance reasons. For > large data.frames or repeated applications, using factors should be faster > for non-trivial strings. I think not. Historically, it's more like "In statistic

Re: [Rd] Regression stars

2013-02-12 Thread Brian Lee Yung Rowe
I thought that the default was the way it was for performance reasons. For large data.frames or repeated applications, using factors should be faster for non-trivial strings. > fs <- c('apple','peach','watermelon','spinach','persimmon','potato','kale') > n <- 100 > > a1 <- data.frame(f=samp

Re: [Rd] Regression stars

2013-02-12 Thread Duncan Murdoch
On 12/02/2013 10:40 AM, Ben Bolker wrote: On 13-02-12 09:20 AM, Uwe Ligges wrote: > > > On 12.02.2013 14:54, Ben Bolker wrote: >> Duncan Murdoch gmail.com> writes: >> >>[snip] >>> >>> Regarding stringsAsFactors: I'm not going to defend keeping it as is, >>> I'll let the people who like it d

Re: [Rd] Regression stars

2013-02-12 Thread Uwe Ligges
On 12.02.2013 16:40, Ben Bolker wrote: On 13-02-12 09:20 AM, Uwe Ligges wrote: On 12.02.2013 14:54, Ben Bolker wrote: Duncan Murdoch gmail.com> writes: [snip] Regarding stringsAsFactors: I'm not going to defend keeping it as is, I'll let the people who like it defend it. Woul

Re: [Rd] Regression stars

2013-02-12 Thread Ben Bolker
On 13-02-12 09:20 AM, Uwe Ligges wrote: > > > On 12.02.2013 14:54, Ben Bolker wrote: >> Duncan Murdoch gmail.com> writes: >> >>[snip] >>> >>> Regarding stringsAsFactors: I'm not going to defend keeping it as is, >>> I'll let the people who like it defend it. >> >>Would someone (anyone)

Re: [Rd] Regression stars

2013-02-12 Thread Uwe Ligges
On 12.02.2013 15:42, Frank Harrell wrote: Uwe I've been consulting for decades and have never once been asked for such stars. Honestly: last time I have been asked last week. And when I answered (in another case few months ago) "OK, I can add you another 5 stars for p values smaller than 0.

Re: [Rd] Regression stars

2013-02-12 Thread Ravi Varadhan
I think that we should use P < .03 (which approximates the probability of 5 consecutive heads) for assigning significance! Ravi -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Frank Harrell Sent: Tuesday, February 12, 2013 9:43

[Rd] Contribution

2013-02-12 Thread Parthasarathy Gopavarapu
Hi, I am Parthasarathy G , from IIT Maras ( India ). I am currently in third year of the undergraduate course. I would like to contribute to the R project. Can anyone guide me regarding this? Thanking you, Parthasarathy [[alternative HTML version deleted]] _

Re: [Rd] Regression stars

2013-02-12 Thread Duncan Murdoch
On 12/02/2013 9:20 AM, Uwe Ligges wrote: On 12.02.2013 14:54, Ben Bolker wrote: > Duncan Murdoch gmail.com> writes: > >[snip] >> >> Regarding stringsAsFactors: I'm not going to defend keeping it as is, >> I'll let the people who like it defend it. > >Would someone (anyone) like to come

Re: [Rd] Regression stars

2013-02-12 Thread Frank Harrell
Uwe I've been consulting for decades and have never once been asked for such stars. And when a clinical researcher puts a sentence in a study protocol that P<0.05 will be considered "significant" I get them to take it out. Frank Uwe Ligges-3 wrote > On 12.02.2013 14:54, Ben Bolker wrote: >> Dunca

Re: [Rd] Regression stars

2013-02-12 Thread Uwe Ligges
On 12.02.2013 14:54, Ben Bolker wrote: Duncan Murdoch gmail.com> writes: [snip] Regarding stringsAsFactors: I'm not going to defend keeping it as is, I'll let the people who like it defend it. Would someone (anyone) like to come forward and give us a defense of stringsAsFactors=TRU

Re: [Rd] Private environments and/or assignInMyNamespace

2013-02-12 Thread Hadley Wickham
> Here my question: Would it be an option to place the widgets in a private > environment of my plugin package (then I would have to learn how to create > one and work with it), or won't they be found that way? It sounds like you want to maintain state across function calls within your package, an

Re: [Rd] Regression stars

2013-02-12 Thread Ben Bolker
Duncan Murdoch gmail.com> writes: [snip] > > Regarding stringsAsFactors: I'm not going to defend keeping it as is, > I'll let the people who like it defend it. Would someone (anyone) like to come forward and give us a defense of stringsAsFactors=TRUE -- even someone who doesn't personal

[Rd] Private environments and/or assignInMyNamespace

2013-02-12 Thread Ulrike Grömping
Dear DevelopeRs, I've been struggling with the new regulations regarding modifications to the search path, regarding my Rcmdr plugin package RcmdrPlugin.DoE. John Fox made Rcmdr comply with the new policy by removing the environment RcmdrEnv from the search path. For the time being, he develop

Re: [Rd] stringsAsFactors

2013-02-12 Thread Ista Zahn
FWIW my view is that for data cleaning and organizing factors just get it the way. For modeling I like them because they make it easier to understand what is happening. For example I can look at the levels() to see what the reference group will be. With characters one has to know a) that levels are