On 26/06/2018 2:24 PM, Therneau, Terry M., Ph.D. via R-devel wrote:
I recently got a request to add head() and tail() methods for Surv objects,
which is quite
reasonable, but not unlike other requests for logLik, vcov, extractAIC, ...
What they
all have in common is that are methods added si
In a Surv object length() returns number of survival times contained in the
object, which
is the logical thing to do. The fact that a survival time needs 2 or 3 values
to
represent is simply a nuisance. Thus length(unclass(x)) = amount of memory
consumed is
not going to map to sensible ope
While it's easy to conceive of a utility that found all generics for
which there is no non-default method for a given class vector, it's
not clear it would be useful, because it depends on the nature of the
object. Surv objects are vector-like, so they need to implement the
"vector API", which is n
I recently got a request to add head() and tail() methods for Surv objects,
which is quite
reasonable, but not unlike other requests for logLik, vcov, extractAIC, ...
What they
all have in common is that are methods added since creation of the survival
package, and
that I didn't know they