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
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
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
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
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)
{
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.
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++
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:
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
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
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
11 matches
Mail list logo