search for: _coerce_

Displaying 2 results from an estimated 2 matches for "_coerce_".

2004 Oct 08
1
Function _coerce_ in _setIs_ never entered (S4).
...tance relation using the function setIs -> MVCa "is a" list. Then I define a function printlength which prints the list-length which is defined for the type "list". If I call this function assigning to their argument an object of class MVCa I would expect that the function _coerce_ defined in setIs will be called. It seems that this never happens using: R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.0 Patched (2004-10-04), ISBN 3-900051-07-0 setClass( "MVCa" ,representation(list="list"...
2004 Oct 08
0
user interface and documentation of setIs and setAs, some suggestions (S4).
...hat 'is(object, class2)' is identical to 'value'. I much more like how setAs is implemented, we cast _from_ _to_ and so the arguments in all this functions are named. Its much more consistent. I would also suggest to replace the keyword _def_ in the setAs function by _coerce_ as it is in the setIs function. I thinke it will be nicer if bot methods will have a unified user interface if possible. Of corse it may be that this is not possible for reasons not known to me. In this case sorry. /E -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnest...