Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-09-30 Thread Witold Eryk Wolski
Hi, Yes indeed. Thanks. Yours Eric Lecoutre wrote: Hi, For your lm problem, you could begin to create a virtual class that accepts either NULL or a lm object: > setClassUnion("mylm", c("NULL","lm")) > setClass("foo", representation(x="numeric", y="mylm")) > new("foo",x=1,y=NULL) Then, you have t

Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-09-30 Thread Eric Lecoutre
Hi, For your lm problem, you could begin to create a virtual class that accepts either NULL or a lm object: > setClassUnion("mylm", c("NULL","lm")) > setClass("foo", representation(x="numeric", y="mylm")) > new("foo",x=1,y=NULL) Then, you have to check the content of slot y in any function that w

[Rd] Print multivariate time series (PR#7255)

2004-09-30 Thread javimunozlara
Full_Name: Javier Muñoz Version: 1.9.1 OS: Windows NT 4.0 Submission from: (NULL) (193.128.25.20) The print.ts function don't show properly the information about year for class mts objects. An example: x <- ts(1:24, end = c(2004, 8), frequency = 12) print(cbind(x, x)) #it shows Jan 2002 instead

Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-09-30 Thread Witold Eryk Wolski
Hi, But "any" rises some other problems well known from S3. One has "any" for "free" in S3. You don't need S4. . But I know how "if" polluted functions look like in S3. They are hard to understand and to maintain. Hence I am quite happy to use S4. Type-checking is usefull if you program with d

[Rd] Documentation: Reference Index (.pdf) -- setOldClass (PR#7254)

2004-09-30 Thread Pfaff, Bernhard
Apologies for cross postings or manual work caused by resending; the intially sent bug report through the web-interface bounced, however. Full_Name: Bernhard Pfaff Version: 1.9.1 OS: Windows NT Submission from: (NULL) (193.194.7.77) Dear core team members / maintainers, in the pdf version of t