Re: [R] vectorize a list

2007-11-08 Thread John Kane
?unlist I think you're misreading ?stack. --- Frank Schmid <[EMAIL PROTECTED]> wrote: > Dear R user > > Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s) > > l > [[1]] > [1] 0.31784399 0.08575421 > > [[2]] > [1] -0.6191679 0.7615479 -1.0087659 >

Re: [R] vectorize a list

2007-11-07 Thread Moshe Olshansky
Stack does not work for me either, but unlist works, i.e. unlist(l) --- Frank Schmid <[EMAIL PROTECTED]> wrote: > Dear R user > > Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s) > > l > [[1]] > [1] 0.31784399 0.08575421 > > [[2]] > [1] -0.6191679

Re: [R] vectorize a list

2007-11-07 Thread Thibaut Jombart
Frank Schmid wrote: >Dear R user > >Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s) > > l >[[1]] >[1] 0.31784399 0.08575421 > >[[2]] >[1] -0.6191679 0.7615479 -1.0087659 > > >Can I stack the entries of this list in 1 vector with the first list >entry f

Re: [R] vectorize a list

2007-11-07 Thread Henrique Dallazuanna
try this: unlist(l) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 08/11/2007, Frank Schmid <[EMAIL PROTECTED]> wrote: > > Dear R user > > Suppose I have the following list: > > > f <- rnorm(2) > > s <- rnorm(3) > > l <- list(f,s) > > l > [[1]] > [1] 0.31784399 0.