[R] classes with chron slots

From: Sebastian Luque <spluque_at_gmail.com>
Date: Thu 23 Jun 2005 - 06:50:50 EST

I'd like to define a class with a chron slot, but:

R> require(chron)
R> setClass("myclass", representation(datetime = "chron")) [1] "myclass"
Warning message:
undefined slot classes in definition of "myclass": datetime(class "chron") in: .completeClassSlots(ClassDef, where)

How should such a class be defined?


Sebastian P. Luque

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jun 23 06:55:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:57 EST