Many thanks to all
--
View this message in context:
http://r.789695.n4.nabble.com/A-question-about-list-tp3385711p3387410.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/li
On Mar 17, 2011, at 5:44 PM, ufuk beyaztas wrote:
Hi dear all,
It may be a simple question, i have a list output with different
number of
elements as following;
[[1]]
[1] 0.86801402 -0.82974691 0.3974 -0.98566707 -4.96576856
-1.32056754
[7] -5.54093319 -0.07600462 -1.34457280 -1.04
use 'unlist'
> x <- list(1:10, 20:27, 30:50)
> x
[[1]]
[1] 1 2 3 4 5 6 7 8 9 10
[[2]]
[1] 20 21 22 23 24 25 26 27
[[3]]
[1] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
> quantile(unlist(x))
0% 25% 50% 75% 100%
1.0 15.0 31.0 40.5 50.0
>
On Thu, Mar 17, 2011
?unlist
quantile(unlist(data))
> Hi dear all,
>
> It may be a simple question, i have a list output with different number of
> elements as following;
>
> [[1]]
> [1] 0.86801402 -0.82974691 0.3974 -0.98566707 -4.96576856
> -1.32056754
> [7] -5.54093319 -0.07600462 -1.34457280 -1.04080125
Hi dear all,
It may be a simple question, i have a list output with different number of
elements as following;
[[1]]
[1] 0.86801402 -0.82974691 0.3974 -0.98566707 -4.96576856 -1.32056754
[7] -5.54093319 -0.07600462 -1.34457280 -1.04080125 1.62843297 -0.20473912
[13] 0.30659907 2.669081
5 matches
Mail list logo