[Rd] Structure of the object: list() and attr()

2006-08-01 Thread Gorjanc Gregor
Hello! I am writing code where I define objects with new class. When I started, it was a simple data.frame with attributes, but it is getting more evolved and I would like to hear any pros and cons to go for list structure, where one slot would be a data.frame, while other slots would take over

Re: [Rd] Any interest in merge and by implementations specifically for so

2006-08-01 Thread tshort
Kevin, Whether or not the R core developers want to merge these functions in base R, they would make a great little package on CRAN. That way others could easily use them, and for yourself, the package automatically gets updated with new versions of R. It sounds like you're done with the hard

Re: [Rd] Structure of the object: list() and attr()

2006-08-01 Thread Seth Falcon
Gorjanc Gregor [EMAIL PROTECTED] writes: Hello! I am writing code where I define objects with new class. When I started, it was a simple data.frame with attributes, but it is getting more evolved and I would like to hear any pros and cons to go for list structure, where one slot would be a

Re: [Rd] Structure of the object: list() and attr()

2006-08-01 Thread Gabor Grothendieck
The key issue is inheritance. If you use a data frame with attributes then you can inherit data frame methods without further definition, e.g. x - structure(data.frame(a = 1:10), my.attr = 33, class = c(myclass, data.frame)) dim(x) # inherit dim method but if you do it this way

Re: [Rd] Any interest in merge and by implementations specifically for so

2006-08-01 Thread Kevin B. Hendricks
Hi Tom, Whether or not the R core developers want to merge these functions in base R, they would make a great little package on CRAN. That way others could easily use them, and for yourself, the package automatically gets updated with new versions of R. It sounds like you're done

Re: [Rd] R | vnc | X11 fonts

2006-08-01 Thread Hin-Tak Leung
Evan Cooch wrote: Quick followup - works fine with fluxbox (and, as noted, default twm). Simply can't get it to work with the gnome desktop, which ultimately I would like to. The difference between twm and metacity in gnome or other gnome windows manager is that twm uses X11 core fonts

Re: [Rd] Install R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11

2006-08-01 Thread Latchezar Dimitrov
Dear R-developers: Anybody having installed R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11, I need you help/advice please. Thank you very much Latchezar Dimitrov -Original Message- From: Latchezar Dimitrov Sent: Wednesday, July 26, 2006 4:48 PM To: 'Prof Brian

Re: [Rd] R | vnc | X11 fonts

2006-08-01 Thread Evan Cooch
Hin-Tak Leung wrote: Evan Cooch wrote: Quick followup - works fine with fluxbox (and, as noted, default twm). Simply can't get it to work with the gnome desktop, which ultimately I would like to. The difference between twm and metacity in gnome or other gnome windows manager is that twm

Re: [Rd] compiling R | multi-Opteron | BLAS source

2006-08-01 Thread Prof Brian Ripley
The R-devel version of R provides a pluggable BLAS, which makes such tests fairly easy (although building the BLAS themselves is not). On dual Opterons, using multiple threads is often not worthwhile and can be counter-productive (Doug Bates has found some dramatic examples, and you can see

Re: [Rd] compiling R | multi-Opteron | BLAS source

2006-08-01 Thread Evan Cooch
Thanks very much - I followed your advice, and have tried a variety of permutations (using ACML, and LAPACK). For the most part, I'm still 'playing' with multiple threads, but given the performance I'm getting (quad Opteron 880, 16 GB RAM, 64-bit FC5), I'll stick with that for now (but based

[Rd] Artefacts in (screen viewed) PDF output

2006-08-01 Thread Roger Bivand
This issue is probably to do with on-screen viewing of PDF files written from R (2.3.1, Windows XP, RHEL 4), not with how the files are produced. So the question is mainly to ask whether others have seen similar behaviour, and whether a remedy is known. When neighbouring polygons are written

Re: [Rd] Any interest in merge and by implementations specifically for so

2006-08-01 Thread Kevin B. Hendricks
Hi, My last word on this topic until I get a working external R package ... The igroup code has now been validated both with and without NAs and with and without removing them. Thanks to Bill, Tom, Thomas, and everyone for your helpful comments and hints. The results for my validation run

[Rd] read.table with more cols than headers

2006-08-01 Thread Gordon Smyth
I am trying to understand the behaviour of read.table() reading delimited files (with header=TRUE and fill=TRUE) when there are more (possibly spurious) columns than headings. I give below four small data files, all of which have one or two extra columns added to one line. Reading the first