[R] Use of results in summary
Torsten Hothorn
Torsten.Hothorn at rzmail.uni-erlangen.de
Thu Feb 28 12:53:51 CET 2002
> Dear R Community,
>
> When making a summary with a vector, the result is "numeric" and I can
> recall its components (like median, mean, etc.) for further use.
> However, if I use summary with a matrix, the result is of mode
> "character" (like "Median : 1.2127")
not true:
R> a <- matrix(1:16, ncol=4)
R> sa <- summary(a)
R> class(sa)
[1] "table"
the docs to `table'
R> ?table
will give you the hint that there are little helpers like
`as.data.frame.table' which may be used for further investigations.
Torsten
> and I cannot extract the results
> for direct further use.
> Thanks for any hints,
>
> Patrick
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list