[Rd] S4 class extending data.frame?

2007-12-12 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to build an S4 class that extends a data frame, but includes several more slots. Here's an example using integer as the base class instead: setClass("c1",representation(comment="character"),contains="integer") z1 = new("c1",55,comment="h

[Rd] APARCH

2007-12-12 Thread Veikko Leinonen
Hi, Could somebody say if it is possible to compute APARCH-models with garchFit commands. I have earlier used aaa (garchOxFit) and now I try to use bbb (look below) aaa <- garchOxFit(formula.mean=~arma(1,0),formula.var=~aparch(1,1),series=nyk,cond.dist=c('gaussian')) bbb <- garchFit(formul

Re: [Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Your example is not reproducible without 'library(survival)'. > When I include that, I get > > >> head(D,20) >> > stime status surv > 1176 TRUE 176 > ... > > Objects of class "Surv" are from the contributed package survival, and you > need that attach

Re: [Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Prof Brian Ripley
On Wed, 12 Dec 2007, Abhishek Tripathi wrote: > > Hi, > > Apologies if it has already been posted. I searched the archives and > couldn't find the answer to my problem. > > I am building a R package and while checking it with R CMD check, I get > the following error, > > * checking whether packag

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-12 Thread ripley
It is right: it is a list of length 9. You even constructed it as such a list! On Tue, 11 Dec 2007, [EMAIL PROTECTED] wrote: > Full_Name: Petr Simecek > Version: 2.5.1, 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.113.231.2) > > > Several times I have experienced that a length of a POS

Re: [Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread ripley
Your example is not reproducible without 'library(survival)'. When I include that, I get > head(D,20) stime status surv 1176 TRUE 176 ... Objects of class "Surv" are from the contributed package survival, and you need that attached to deal with them properly. On Wed, 12 Dec 2007, [

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-12 Thread Duncan Murdoch
On 12/11/2007 6:20 AM, [EMAIL PROTECTED] wrote: > Full_Name: Petr Simecek > Version: 2.5.1, 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.113.231.2) > > > Several times I have experienced that a length of a POSIXt vector has not been > computed right. > > Example: > > tv<-structure(list

Re: [Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Duncan Murdoch
On 12/12/2007 4:55 AM, Abhishek Tripathi wrote: > Hi, > > Apologies if it has already been posted. I searched the archives and > couldn't find the answer to my problem. > > I am building a R package and while checking it with R CMD check, I get > the following error, > > * checking whether p

Re: [Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-12 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Full_Name: Petr Simecek > Version: 2.5.1, 2.6.1 > OS: Windows XP > Submission from: (NULL) (195.113.231.2) > > > Several times I have experienced that a length of a POSIXt vector has not been > computed right. > > Example: > > tv<-structure(list(sec = c(50, 0, 55, 12, 2,

[Rd] R CMD check error, Readitem unknown type 203

2007-12-12 Thread Abhishek Tripathi
Hi, Apologies if it has already been posted. I searched the archives and couldn't find the answer to my problem. I am building a R package and while checking it with R CMD check, I get the following error, * checking whether package 'drCCA' can be installed ... ERROR Installation failed.

[Rd] Wrong length of POSIXt vectors (PR#10507)

2007-12-12 Thread simecek
Full_Name: Petr Simecek Version: 2.5.1, 2.6.1 OS: Windows XP Submission from: (NULL) (195.113.231.2) Several times I have experienced that a length of a POSIXt vector has not been computed right. Example: tv<-structure(list(sec = c(50, 0, 55, 12, 2, 0, 37, NA, 17, 3, 31 ), min = c(1L, 10L, 11L,

[Rd] Adding a survival object to a data frame (PR#10510)

2007-12-12 Thread edward . m
Full_Name: Edward McNeil Version: 2.6.1 OS: Windows Submission from: (NULL) (203.170.234.5) I want to show students how the survival object looks like in R. Reproducible example: library(MASS) data(Aids2) attach(Aids2) status <- status=="D" stime <- death-diag surv <- Surv(stime, status) D <- da