[R] classes with chron slots

Sebastian Luque spluque at gmail.com
Wed Jun 22 22:50:50 CEST 2005


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
-- 
Sebastian P. Luque




More information about the R-help mailing list