[R] List of object properties
ehlers at ucalgary.ca
Tue Feb 2 20:01:39 CET 2010
Check ?str which displays the structure of R objects.
And do use extractor functions when available:
coef(yourModel) instead of yourModel$coef
Philipp Rappold wrote:
> Dear all,
> I have a simple question: How can I retrieve a list with all properties
> of an object?
> If I fit a regression with
> model <- coxph(Surv(....)~...)
> I know that I can access the coefficients with model$coefficients[...]
> afterwards, but how do I know which other variables are available and
> what are their names?
> Thanks and all the best
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
University of Calgary
More information about the R-help