Nevil Amos
2010-Nov-14 11:28 UTC
[R] how to find names referring to "parts" of an R object. particlualry w.r.t capscale
This is both a very general, and a specific question. either answer will help me a lot. I know the object$part syntax is used to retrieve parts of an object for instance myMantel$signif will return the the p value of mantel() and myMantel$statistic the mantel r. Is there any way of listing such components of all objects. at the moment I would like to be able to extract the variance, p value etc for a capscle to tabulate the automatically but would also like to know if the re is a simple way to establish the way to refer to all individual sub parts of a object? thanks Nevil Amos
Uwe Ligges
2010-Nov-14 14:27 UTC
[R] how to find names referring to "parts" of an R object. particlualry w.r.t capscale
Use str(object) in order to inspect what elements object consists of. Uwe Ligges On 14.11.2010 12:28, Nevil Amos wrote:> This is both a very general, and a specific question. either answer will > help me a lot. > > I know the object$part syntax is used to retrieve parts of an object for > instance myMantel$signif will return the the p value of mantel() and > myMantel$statistic the mantel r. > > Is there any way of listing such components of all objects. at the > moment I would like to be able to extract the variance, p value etc for > a capscle to tabulate the automatically but would also like to know if > the re is a simple way to establish the way to refer to all individual > sub parts of a object? > > > thanks > > Nevil Amos > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.