Re: [Rd] Crash with Unicode and sub (PR#14114)

2009-12-09 Thread ripley
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-153156736-1260394708=:548 Content-Type: TEXT/PLAIN; CHARSET=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: It seems

Re: [Rd] Crash with Unicode and sub (PR#14114)

2009-12-09 Thread Prof Brian Ripley
It seems (from the debugger output) that this is corruption in the R memory allocation routines. Such things can usually be tracked down via valgrind and a valgrind-instrumented build of R, but I cannot trigger this on any system with valgrind. I've tried 64- and 32-bit versions, and Latin-1

Re: [Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread Peng Yu
I make a version for matrix. Because, it would be more efficient to split each column of a matrix than to convert a matrix to a data.frame then call split() on the data.frame. Note that the version for a matrix and a data.frame is slightly different. Would somebody add this in R as well? split.mat

Re: [Rd] reshape() makes R run out of memory (PR#14121)

2009-12-09 Thread hadley wickham
> Yes. The culprit would seem to be interaction(), as in > >> x <- y <- z <- 1:999 >> i <- interaction(x,y,z, drop=TRUE) > Error: cannot allocate vector of size 3.7 Gb > > which is happening due to the occurrence of three idvar variables. This > works basically as interaction(x,y,z)[,drop=TRUE], i.

Re: [Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread Peng Yu
On Wed, Dec 9, 2009 at 5:44 PM, Charles C. Berry wrote: > On Wed, 9 Dec 2009, William Dunlap wrote: > >> Here are some differences between the current and proposed >> split.data.frame. > > Adding 'drop=FALSE' fixes this case. See in line correction below. Thank you for the correction. >>> d<-dat

Re: [Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread Charles C. Berry
On Wed, 9 Dec 2009, William Dunlap wrote: Here are some differences between the current and proposed split.data.frame. Adding 'drop=FALSE' fixes this case. See in line correction below. Chuck d<-data.frame(Matrix=I(matrix(1:10, ncol=2)), Named=c(one=1,two=2,three=3,four=4,five=5), row.na

Re: [Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread William Dunlap
Here are some differences between the current and proposed split.data.frame. > d<-data.frame(Matrix=I(matrix(1:10, ncol=2)), Named=c(one=1,two=2,three=3,four=4,five=5), row.names=as.character(1001:1005)) > group<-c("A","B","A","A","B") > split.data.frame(d,group) $A Matrix.1 Matrix.2 Named 10

[Rd] split() is slow on data.frame (PR#14123)

2009-12-09 Thread pengyu . ut
Please see the following code for the runtime comparison between split() and mysplit.data.frame() (they do the same thing semantically). mysplit.data.frame() is a fix of split() in term of performance. Could somebody include this fix (with possible checking for corner cases) in future version of R

[Rd] Antwort: Re: Crash with Unicode and sub (PR#14114)

2009-12-09 Thread g . russell
Hello Peter, I have now installed R-2.10.1 RC (sessionInfo() says "R version 2.10.1 RC (2009-12-06 r50684)", the rest I believe is as before). The following code always brings R --vanilla down (with a crash, not a normal exit): -- cut here -- gctorture() u <- intToUtf8(c(rep(1e3,1e2),32,c(rep(1e

Re: [Rd] reshape() makes R run out of memory (PR#14121)

2009-12-09 Thread Peter Dalgaard
abelik...@gmail.com wrote: Full_Name: Alexander L. Belikoff Version: 2.8.1 OS: Ubuntu 9.04 (x86_64) Submission from: (NULL) (67.244.71.200) I'm trying to reshape the following data frame: ID DATE1 DATE2 VALUE_TYPEVALUE 'abcd1233' 2009-11-12

[Rd] choose.files() latent highlighting in console

2009-12-09 Thread Daniel Murphy
Greetings, When I call choose.files() from within a Windows (Vista or XP) Rgui.exe (2.10.0) session and double-click my choice, a large section of the text in the 'R Console' window appears as "selected" (highlighted in blue) when control returns to the console. The end point of the selected text

[Rd] Recent TeX changes and R/package manuals

2009-12-09 Thread Prof Brian Ripley
As some of you will be aware, TeXLive 2009 was released last month having blocked updates on earlier versions since May. This has lead to a flood of updates of LaTeX packages, as a result of which the PDF manuals of R 2.10.0 and earlier will no longer build, for two separate reasons. For MiK

Re: [Rd] binary string conversion to a vector (PR#14120)

2009-12-09 Thread Duncan Murdoch
brg...@ncsu.edu wrote: Full_Name: Franc Brglez Version: R 2.9.1 GUI 1.28 Tiger build 32-bit (5444) OS: MacOSX -- 10.6.2 Submission from: (NULL) (24.148.163.114) I am demonstrating what may be a bug or my lack of experience. Please review as it would help to hear from someone. It is your la

Re: [Rd] binary string conversion to a vector (PR#14120)

2009-12-09 Thread Prof Brian Ripley
On Wed, 9 Dec 2009, brg...@ncsu.edu wrote: Full_Name: Franc Brglez Version: R 2.9.1 GUI 1.28 Tiger build 32-bit (5444) OS: MacOSX -- 10.6.2 Submission from: (NULL) (24.148.163.114) I am demonstrating what may be a bug or my lack of experience. Please review as it would help to hear from someon

Re: [Rd] Válasz: Re: tm and e1071 question

2009-12-09 Thread Martin Maechler
> "JP" == Jeszenszky Peter > on Mon, 7 Dec 2009 22:12:43 +0100 writes: JP> Hello, JP> Thank you for your reply. The suggested conversion trick with a slight JP> modification does the job. JP> I hope, the svm function of the e1071 package will support slam sparse J

[Rd] umlaut in path name (PR#14119)

2009-12-09 Thread karl . schilling
Full_Name: Karl Schilling Version: 2.10.0 patched OS: Win XP Submission from: (NULL) (131.220.251.8) I am running R 2.10.0 patched under WinXP (German version). When I use the command file.choose() and try to navigate to a target with an umlaut (Ä, Ö, Ü) in the pathway, I get an error message "fi

[Rd] binary string conversion to a vector (PR#14120)

2009-12-09 Thread brglez
Full_Name: Franc Brglez Version: R 2.9.1 GUI 1.28 Tiger build 32-bit (5444) OS: MacOSX -- 10.6.2 Submission from: (NULL) (24.148.163.114) I am demonstrating what may be a bug or my lack of experience. Please review as it would help to hear from someone. MANY THANKS -- Franc Brglez The function "

[Rd] reshape() makes R run out of memory (PR#14121)

2009-12-09 Thread abelikoff
Full_Name: Alexander L. Belikoff Version: 2.8.1 OS: Ubuntu 9.04 (x86_64) Submission from: (NULL) (67.244.71.200) I'm trying to reshape the following data frame: ID DATE1 DATE2 VALUE_TYPEVALUE 'abcd1233' 2009-11-122009-12-23 'TYPE1'