| To: | "Leeds, Mark" <mleeds@mlp.com>, s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: converting a 1 component list to |
| From: | "Richard M. Heiberger" <rmh@temple.edu> |
| Date: | Thu, 19 May 2005 13:50:28 -0400 |
> tmp <- list(1:10)
> unlist(tmp)
[1] 1 2 3 4 5 6 7 8 9 10
> tmp[[1]]
[1] 1 2 3 4 5 6 7 8 9 10
> as.matrix(tmp[[1]])
[,1]
[1,] 1
[2,] 2
[3,] 3
[4,] 4
[5,] 5
[6,] 6
[7,] 7
[8,] 8
[9,] 9
[10,] 10
>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | converting a 1 component list to a vector, Leeds, Mark |
|---|---|
| Next by Date: | thanks to everyone, Leeds, Mark |
| Previous by Thread: | converting a 1 component list to a vector, Leeds, Mark |
| Next by Thread: | thanks to everyone, Leeds, Mark |
| Indexes: | [Date] [Thread] [Top] [All Lists] |