Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Steve Taylor
Cc: r-help@r-project.org Subject: Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000) Sorry. data.table or even data.frame (as they are related). My question is, if there is a short form to refer to all 1000 of them similar to what exists in SAS. Thank you, Pooya

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Pooya Lalehzari
That is great! Thank you so much. -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Thursday, August 15, 2013 5:29 PM To: Ista Zahn Cc: Pooya Lalehzari; R help Subject: Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000) Just to add: You could

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread arun
ion(x) {x1<-data.frame(numeric());colnames(x1)<-x; x1})) identical(Large_Table,Large_Table2) #[1] TRUE A.K. - Original Message - From: Ista Zahn To: Pooya Lalehzari Cc: arun ; "r-help@r-project.org" Sent: Thursday, August 15, 2013 5:19 PM Subject: Re: [R] How can I cre

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Bert Gunter
.frame':0 obs. of 1000 variables: > $ Var1 : num > $ Var2 : num > > A.K. > > > > - Original Message - > From: Pooya Lalehzari > To: arun > Cc: "r-help@r-project.org" > Sent: Thursday, August 15

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread arun
.K. - Original Message - From: Pooya Lalehzari To: arun Cc: "r-help@r-project.org" Sent: Thursday, August 15, 2013 5:09 PM Subject: RE: [R] How can I create a data.table with 1000 variables (Var1:Var1000) Here is the sample code. Large_Table = data.frame(            

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Ista Zahn
> > > -Original Message- > From: arun [mailto:smartpink...@yahoo.com] > Sent: Thursday, August 15, 2013 5:04 PM > To: Pooya Lalehzari > Subject: Re: [R] How can I create a data.table with 1000 variables > (Var1:Var1000) > > This question is still not clear. Could

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Pooya Lalehzari
- From: arun [mailto:smartpink...@yahoo.com] Sent: Thursday, August 15, 2013 5:04 PM To: Pooya Lalehzari Subject: Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000) This question is still not clear.  Could you show a reproducible example as to what you want?  In the title

Re: [R] How can I create a data.table with 1000 variables (Var1:Var1000)

2013-08-15 Thread Pooya Lalehzari
Sorry. data.table or even data.frame (as they are related). My question is, if there is a short form to refer to all 1000 of them similar to what exists in SAS. Thank you, Pooya Lalehzari. -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Thursday, August 15,