Displaying 20 results from an estimated 20000 matches similar to: "Test suites"
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series).
It
implements irregular time-series as an S4 class, extending the matrix class,
and records the time-stamp of each row in the matrix using POSIX. Print,
plot,
extraction, append, and related functionality are available.
Feedback and suggestions are welcome.
Giles Heywood
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series).
It
implements irregular time-series as an S4 class, extending the matrix class,
and records the time-stamp of each row in the matrix using POSIX. Print,
plot,
extraction, append, and related functionality are available.
Feedback and suggestions are welcome.
Giles Heywood
2003 Jun 06
3
irregular time-series
I make quite a lot of use of irregular time-series, and had already spent a
bit of time writing an 'its' class when the 'irts' class was released via
the package 'tseries'.
I have experimented with the 'irts' class, and have some practical issues
with its use. In some applications of irregular time-series (in my case
these are financial and econometric) there are
2003 Jul 09
2
Packages, generics, S3 and S4
My question has two parts.
The first is with regard to the frame or environment in which generic
functions are defined in packages. It seems as though they are defined
(i.e. exist as objects) in frame 1, even when defined in a package.
The following is a short example:
setClass("track",representation(x="numeric",y="numeric"))
plotTrack <- function(x,y,...)
2001 Nov 28
1
Assignment to a list in a function
Assignment to a list in a function does not behave as I would expect.
The following function illustrates the point
#----------------------------------------
temp _ function()
{
nf _ 2
ns _ 5
z _ vector("list",ns)
x _ matrix(NA,nrow=ns,ncol=nf)
for(j in 1:ns)
{
for(i in 1:nf)
{
x[,i] _ i+j*100
}
z[[j]] _ x
print(z[[j]])
}
z
}
2005 Apr 13
1
S4 extends a class, but .Data slot has different class
When I define an S4 class ("B" in the example below) that directly extends
another ("A" in the example below) , which in turn directly extends another
("character" in the example below), I find that the slot does not have the
class I specified in setClass(), it has the underlying class.
Is this an intended feature?
Briefly, the reason for using this type of
2003 Nov 04
2
Object saved from 1.7.1, loaded in 1.8.0
I am having difficulty using in 1.8.0 an object created under 1.7.1. The
following is a 'minimal example' of the issue. First the part in 1.7.1:
> require("methods")
[1] TRUE
> setClass("foo",representation("vector",label="character"))
[1] "foo"
> x <- new("foo",1:2,label=LETTERS[1:2])
>
2004 Oct 25
1
copyright issues when package maintainer changes
I will be taking over as maintainer of the its package from Giles Heywood.
The code was originally written while he was working at Commerzbank. I have
added the header below to the top of the R source file to indicate the
changes in the copyrights for the code. The package was originally released
under GPL2. I have no experience with copyright issues, and would
appreciate it if someone who does
2004 Feb 26
2
package 'stats' needs import directive for 1.9.0?
I maintain the Irregular Time Series (its) package on CRAN. I am currently
testing a release. Under 1.8.1 I am able to define a S4 generic 'start' as
follows:
if(!isGeneric("start")) {setGeneric("start", useAsDefault=start)}
Under 1.9.0, Rcmd check generates an error, as 'start' is not recognised.
If I use the NAMESPACE directive IMPORT, all is well:
2011 Aug 12
2
rollapply.zoo() with na.rm=TRUE
Hi.
I'm comparing output from rollapply.zoo, as produced by two versions
of R and package zoo. I'm illustrating with an example from a R-help
posting 'Zoo - bug ???' dated 2010-07-13.
My question is not about the first version, or the questions raised in
that posting, because the behaviour is as documented. I'm puzzled as
to why na.rm no longer is passed to mean, i.e. why
2012 Nov 30
1
xts indexed with Date class
Hi
I see a changed behaviour in xts indexed on class Date in the latest
versions, versus 2.
It seems to be related to changes to/from daylight savings time,
happens those weekends.
Is it not intended that class Date be used like this, or is this new
behaviour incorrect?
Giles
Example:
> a<-as.Date(15423:15426)
> x<-xts(seq_along(a),a)
> print(x)
[,1]
2012-03-24
2004 Jan 08
3
S3, S4, namespace
I have encountered an issue which I have been unable to resolve, involving
an S3 generic (print) being declared S4 generic in a package, and the method
being exported. This all works fine - the problem occurs when I try to
import the method to another package.
Here is the bit that works fine. -------------
#the .r file for package bar
2002 May 28
1
constrained regression
I want to do a linear regression where the coefficients
obey two linear constraints, and also are all non-negative.
What is the best way to do this? Computational speed is a
consideration as I must do it many times.
When this question was asked previously on the list, quadprog
was suggested - is this the best solution?
(I may have missed something obvious in the documentation,
but I have
2007 Apr 11
2
negative variances
Dear R experts,
I had a question which may not be directly relevant to R but I will be
grateful if you can give me some advices.
I ran a two-level multilevel model for data with repeated measurements over
time, i.e. level-1 the repeated measures and level-2 subjects. I could not
get convergence using lme(), so I tried MLwiN, which eventually showed the
level-2 variances (random effects for
2008 Jan 17
5
unusual challenges speccing external software
This is something I''ve come up against twice. First, I have an
interactive editor which calls vi, emacs, or TextMate (etc.) via Unix,
and then loads the file handed to the editor back into IRB after it''s
edited and saved. I guess that makes it a special case of a more
general question, which is how do you spec external processes, with a
slightly more complicated version of the
2004 Mar 03
1
match.call(), S4
I get different results from match.call(), according to whether a function
is dispatched via S3 or S4. Specifically, when I use S4 dispatch in the
following example, the match.call() result is of length 1 less than I
expect. I need to add an extra comma to get the same results as in the S3
method.
--------example
setClass("foo",representation("matrix"))
2008 Feb 12
2
CRC calculation performance
I saw the talk Seeking is hard: Ogg design internals by Ralph Giles at
linux.conf.au MEL8OURNE2008.
Some suggestions:
In the page checksum section of http://xiph.org/ogg/doc/framing.html
please add a link to the wikipedia page, since there are links to faster
variants of table driven CRC calculation there - though it is not a
thing of beauty.
http://en.wikipedia.org/wiki/Cyclic_redundancy_check
2003 Sep 08
2
Yet another beginner question
Thanks for all the help on my earlier questions.....
How do you plot a simple time series with unequal intervals? I have
the following
dateofpoll <- as.ts(c("6/1/02", "7/1/02", "10/1/02", "1/4/03",
"1/25/03",
"6/7/03", "7/16/03", "8/17/03", "9/4/03"))
reelect <- c(51, 47, 49, 51, 49, 49, 46, 45, 40)
2001 May 01
3
Factor Analysis
Thanks to Brian Ripley for the time and effort put into developing the
factanal package for R. I have found it very useful. However, in trying to
replicate some results from previous research, I have run into the need for
a couple of extensions and was wondering if they might find their way into
future implementations.
1. Though maximum likelihood estimates might be more rigorous and
2004 Jul 02
1
priceIts problem
Dear R People:
In library(its), there is a command priceIts.
There is a problem with this command. It is returning an error message:
> ibm1 <- priceIts(instrument="ibm",start="1998-01-01",quote="Open")
Error in download.file(url, destfile, method = method, quiet = quiet) :
cannot open URL