s-news
[Top] [All Lists]

Re: converting a 1 component list to

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>
  • Re: converting a 1 component list to, Richard M. Heiberger <=