[R] list of lists to a data.frame

2006-08-18 Thread Rajarshi Guha
Hi, I have a situation where I have a list of lists. Each list can contain elements of different types (but each one will be a scalar) say of double, integer or character. However the elements of each list are always in the same order: x - list('a', 1, 2) y - list('b', 3, 4) z - list('c', 5, 6)

Re: [R] list of lists to a data.frame

2006-08-18 Thread Marc Schwartz (via MN)
On Fri, 2006-08-18 at 16:44 -0400, Rajarshi Guha wrote: Hi, I have a situation where I have a list of lists. Each list can contain elements of different types (but each one will be a scalar) say of double, integer or character. However the elements of each list are always in the same order:

Re: [R] List of lists???

2006-02-01 Thread Stephane CRUVEILLER
Thx for the hint... the div - factor(c(1,1,1,2,2)) did exactly what I was expecting... Stéphane. Le Mardi 31 Janvier 2006 15:50, Gabor Grothendieck a écrit : Your post seems to be messed up but I will assume you have a 5 column data frame and the questino is how to run f on the first three

[R] List of lists???

2006-01-31 Thread Stephane CRUVEILLER
Hi, I would like to perform computations on some variables belonging to the same dataframe. For instance my data frame has the following shape: toto1   toto2   toto3   toto4   toto5 1   1   2   3   4   5 2   6   7   8   9   10 I would like to

Re: [R] List of lists???

2006-01-31 Thread Gabor Grothendieck
Your post seems to be messed up but I will assume you have a 5 column data frame and the questino is how to run f on the first three columns and separately on the last two. I think the easiest is just the following where I have used the builtin iris data set where I have assumed that the

[R] list of lists question

2004-11-23 Thread Karla Sartor
Hello all, As a general programming question I can't seem to figure out how to make a list of lists in R. As matrices won't work as they have to be rectangular. I am sure that there is an easy solution but... the specific situation is this: - I have created a Tukey confidence interval table

RE: [R] list of lists question

2004-11-23 Thread Liaw, Andy
From: Karla Sartor Hello all, As a general programming question I can't seem to figure out how to make a list of lists in R. As matrices won't work as they have to be rectangular. I am sure that there is an easy solution but... the specific situation is this: - I have created

Re: [R] list of lists question

2004-11-23 Thread Spencer Graves
. hope this helps. spencer graves Karla Sartor wrote: Hello all, As a general programming question I can't seem to figure out how to make a list of lists in R. As matrices won't work as they have to be rectangular. I am sure that there is an easy solution but... the specific situation