Re: [Rd] Extract/format/show for S4 objects

2010-06-09 Thread Jeffrey J. Hallman
The tis package has the ti (TimeIndex) class that does what you want, and I modestly think it's nicer than the zoo stuff. As for S4 classes, there's a good reason many of us don't use them: they're too inflexible and hard to program with. I wouldn't go there unless I really had to. Johann

Re: [Rd] Extract/format/show for S4 objects

2010-06-09 Thread Johann Hibschman
Gabor Grothendieck ggrothendi...@gmail.com writes: The yearqtr class already rounds off automatically to avoid floating point effects and handles #1 and #2. The main use for all this was so I could use quarters as index columns with data.table, which demands integer storage mode. (This is

Re: [Rd] Extract/format/show for S4 objects

2010-06-09 Thread Gabor Grothendieck
Note that zoo's merge can handle that: library(zoo) z - zooreg(1:6, as.yearqtr(2000 Q1)) merge(z, zlag = lag(z1, -1)) z zlag 2000 Q1 1 NA 2000 Q2 21 2000 Q3 32 2000 Q4 43 2001 Q1 54 2001 Q2 65 2001 Q3 NA6 On Wed, Jun 9, 2010 at 10:09 AM, Johann

Re: [Rd] Extract/format/show for S4 objects (Johann Hibschman)

2010-06-09 Thread Daniel Murphy
Johann, Following up on Gabor's reply, the mondate package (new on CRAN last week) will accomplish your needs. I'm trying to make an integer-backed quarter (as in fraction of year) class, but I can't quite it to work. I want integer-backed so I don't have to worry about floating-point effects

[Rd] Documenting generic S4 replacement method for package building

2010-06-09 Thread Thomas Roth
Dear List Members, I'm struggling with the documentation of a generic S4 replacement method. I've created a S4 method lows via setGeneric(lows, function(object) standardGeneric(lows)) setGeneric(lows-, function(object, value) standardGeneric(lows-)) setMethod(lows, myClass, function(object) {

[Rd] Solaris / CC builds

2010-06-09 Thread Dominick Samperi
Hello, I'm trying to figure our why my package (cxxPack) fails to build under Solaris using CC on CRAN, and I wonder if somebody can comment? If I try to build R on a Solaris SPARC box that has CC the R configure script uses gcc/g++ instead of CC, yet CC seems to be used for the CRAN builds.

Re: [Rd] Solaris / CC builds

2010-06-09 Thread Simon Urbanek
On Jun 9, 2010, at 12:47 PM, Dominick Samperi wrote: Hello, I'm trying to figure our why my package (cxxPack) fails to build under Solaris using CC on CRAN, and I wonder if somebody can comment? If I try to build R on a Solaris SPARC box that has CC the R configure script uses gcc/g++

[Rd] Argument mismatches in S3 generic and method

2010-06-09 Thread William Dunlap
The way R treats the first argument to an S3 method which uses a different name for the argument than the generic depends on whether there is a ... in the argument list. If there is is no ellipsis then the call cannot tag the argument with either name but an untagged first argument works:

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-09 Thread Bill . Glessner
First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon of choice for the faculty wishing to use R, then ran ./configure as before. The ./configure output line using as R_SHELL for scripts ... /usr/local/bin/bash would seem to indicate that the R_SHELL environment variable

[Rd] Broken link in HTML version of R Installation and Administration manual

2010-06-09 Thread Hervé Pagès
Hi, I just updated my R-devel today using the tarball from 2010-06-07 (r52225). The link to 3.1.10 64-bit Windows builds in the table of content at the top of R_HOME/doc/manual/R-admin.html is broken. The table of content has: a href=#64_002dbit-Windows-builds3.1.10 64-bit Windows builds/a

Re: [Rd] Question on trying to build R 2.11.1 on Tru64(aka OSF1)

2010-06-09 Thread Peter Dalgaard
bill.gless...@cwu.edu wrote: First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon of choice for the faculty wishing to use R, then ran ./configure as before. The ./configure output line using as R_SHELL for scripts ... /usr/local/bin/bash would seem to indicate that