Re: [R] Adding a new variable to each element of a list

2012-11-26 Thread Stephen Politzer-Ahles
which BTW gets removed by individually inserting > as you showed. > > A.K. > > > > > > > > > From: Stephen Politzer-Ahles > To: arun > Cc: R help > Sent: Sunday, November 25, 2012 8:35 PM > Subject: Re: [R] Adding a new variable to each element of a li

Re: [R] Adding a new variable to each element of a list

2012-11-25 Thread arun
as you showed. A.K. From: Stephen Politzer-Ahles To: arun Cc: R help Sent: Sunday, November 25, 2012 8:35 PM Subject: Re: [R] Adding a new variable to each element of a list Hi Arun, Thanks a lot for the help. I think I didn't make my request clear

Re: [R] Adding a new variable to each element of a list

2012-11-25 Thread Stephen Politzer-Ahles
7.467 13.58 0.002683 0.5 0.7724 > #Residuals 8 4.40 0.550 0.5 0.7724#Here it got > repeated > > May be there are better methods > > A.K. > > > > > > - Original Message - > From: Stephen Politzer-Ahles > To: r-help@r-project.org &g

Re: [R] Adding a new variable to each element of a list

2012-11-24 Thread arun
From: Stephen Politzer-Ahles To: r-help@r-project.org Cc: Sent: Saturday, November 24, 2012 5:33 PM Subject: [R] Adding a new variable to each element of a list Hello, I have a list of data with multiple elements, and each element in the list has multiple variables in it. Here's an exam

[R] Adding a new variable to each element of a list

2012-11-24 Thread Stephen Politzer-Ahles
Hello, I have a list of data with multiple elements, and each element in the list has multiple variables in it. Here's an example: ### Make the fake data dv <- c(1,3,4,2,2,3,2,5,6,3,4,4,3,5,6) subject <- factor(c("s1","s1","s1","s2","s2","s2","s3","s3","s3", "s4","s4","s4","s5","s5","s5")) myfact