[Rd] Option "installWithVers" seems to impact new.packages() badly?

2005-09-30 Thread A.J. Rossini
In Rdevel, SVN version built this morning around 10am central european time, it looks like install.packages(new.packages(),installWithVers=TRUE) seem to ignore the version information -- that is, it reinstalls current versions of packages. This did not happen before I used "installWithVers=TR

[Rd] bug in gsub with perl=TRUE (PR#8164)

2005-09-30 Thread Richard . Mott
Full_Name: Richard Mott Version: 2.0.1 OS: Linux toad 2.6.9 #4 SMP Mon Feb 21 16:20:16 GMT 2005 x86_64 AMD Opteron(tm) Processor 848 AuthenticAMD GNU/Linux Submission from: (NULL) (129.67.46.247) gsub with perl=TRUE does not work properly. It pads/truncates the resulting string to the length of

Re: [Rd] bug in gsub with perl=TRUE (PR#8164)

2005-09-30 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: > Full_Name: Richard Mott > Version: 2.0.1 This version is completely outdated. Please try with a *recent* version of R when reporting bugs, in this case R-2.2.0 beta (or in worst case R-2.1.1, the current release). The bug reported below has been fixed some months ago

[Rd] Subscripting fails if name of element is "" (PR#8161)

2005-09-30 Thread Jens Oehlschlägel
Dear all, I resend this mail because it was blocked: I submitted a bug from the r-bug webpage and hypatia seems to block mail that is send from a different IP than that usually associated with the email. Looks like it is currently impossible to correctly submit bugs from the website. However, here

Re: [Rd] Summary of translation status

2005-09-30 Thread Duncan Murdoch
On 9/28/2005 11:50 PM, Fernando Henrique Ferraz P. da Rosa wrote: > Dear R-devel & Translation Teams, > > In order to monitor the progress of the translation for the > pt_BR team I wrote a script to summarize the status of the translations. > It wasn't difficult to extend it to the

Re: [Rd] Subscripting fails if name of element is "" (PR#8161)

2005-09-30 Thread Thomas Lumley
On Fri, 30 Sep 2005, "Jens Oehlschlägel" wrote: Dear all, The following shows cases where accessing elements via their name fails (if the name is a string of length zero). This looks deliberate (there is a function NonNullStringMatch that does the matching). I assume this is because there i

[Rd] Compiling R on OpenSolaris

2005-09-30 Thread Vincent Yau
Hi: I am trying to R (v2.1.1) to compile on OpenSolaris (build 22) using gcc version 3.4.3. But I am getting this error message: gmake[5]: Entering directory `/usr/local/R-2.1.1/src/library/tools/src' ../../../../library/tools/libs/tools.so is unchanged gmake[5]: Leaving directory `/usr/local/R-2

[Rd] by() processing on a dataframe

2005-09-30 Thread Duncan Murdoch
I want to calculate a statistic on a number of subgroups of a dataframe, then put the results into a dataframe. (What SAS PROC MEANS does, I think, though it's been years since I used it.) This is possible using by(), but it seems cumbersome and fragile. Is there a more straightforward way th

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread hadley wickham
I'm not entirely sure what you want, but maybe this does the trick? data.frame.by <- function(data, variables, fun, ...) { if (length(variables) == 0 ) { df <- data.frame(results = 0) df$results <- list(fun(data$value, ...)) return(df)

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Peter Dalgaard
Duncan Murdoch <[EMAIL PROTECTED]> writes: > I want to calculate a statistic on a number of subgroups of a dataframe, > then put the results into a dataframe. (What SAS PROC MEANS does, I > think, though it's been years since I used it.) > > This is possible using by(), but it seems cumbersome

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Gabor Grothendieck
Check out summaryBy in the doBy package at: http://genetics.agrsci.dk/~sorenh/misc e.g. summaryBy(value ~ gp1 + gp2, data = dataset) On 9/30/05, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > I want to calculate a statistic on a number of subgroups of a dataframe, > then put the results in

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Marc Schwartz (via MN)
On Fri, 2005-09-30 at 13:22 -0400, Duncan Murdoch wrote: > I want to calculate a statistic on a number of subgroups of a dataframe, > then put the results into a dataframe. (What SAS PROC MEANS does, I > think, though it's been years since I used it.) > > This is possible using by(), but it see

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Duncan Murdoch
On 9/30/2005 1:41 PM, Peter Dalgaard wrote: > Duncan Murdoch <[EMAIL PROTECTED]> writes: > >> I want to calculate a statistic on a number of subgroups of a dataframe, >> then put the results into a dataframe. (What SAS PROC MEANS does, I >> think, though it's been years since I used it.) >> >>

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Duncan Murdoch
On 9/30/2005 1:41 PM, hadley wickham wrote: > I'm not entirely sure what you want, but maybe this does the trick? > > data.frame.by <- function(data, variables, fun, ...) { > if (length(variables) == 0 ) { > df <- data.frame(results = 0) > df$results <- list(fun(d

Re: [Rd] by() processing on a dataframe

2005-09-30 Thread Gabor Grothendieck
And here is one more approach using the reshape package: library(reshape) dataset.d <- melt(dataset, id = 1:2) cast(dataset.d, gp1 + gp2 ~ variable, mean) On 9/30/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Check out summaryBy in the doBy package at: > > http://genetics.agrsci.dk/~sor

Re: [Rd] Summary of translation status

2005-09-30 Thread Fernando Henrique Ferraz P. da Rosa
Duncan Murdoch writes: > > Hi Fernando. That's a nice page. I'd add an explicit statement about > which branch the statistics apply to. You say "Statistics based on SVN: > 35706", presumably on the trunk, but soon interest will shift to the > R-2-2-patches branch. (If this is automated and