[R] setClass - equvalent declarations?
Witold Eryk Wolski
wolski at molgen.mpg.de
Wed Oct 6 21:22:20 CEST 2004
Hi,
Why the third declation is not equivalent to the first 2 and gives a Warning
#1
setClass("MVE",representation("list",names="character"))
#2
setClass(
"MVE"
,contains="list"
,representation(
names="character"
)
)
#3
setClass("MVE","matrix",representation(names="character"))
[1] "MVE"
Warning message:
prototype is a list with named elements (could be ambiguous): better to use function prototype() to avoid trouble. in: reconcilePropertiesAndPrototype(name, slots, prototype, superClasses,
/E.
--
Dipl. bio-chem. Witold Eryk Wolski
MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin _
tel: 0049-30-83875219 __("< 'v'
http://www.molgen.mpg.de/~wolski \__/ / \
mail: witek96 at users.sourceforge.net ^^ w w
wolski at molgen.mpg.de
More information about the R-help
mailing list