Dear friends - I have a very simple question -
I generate a number of dataframes with identical names and want to
combine them into one large dataframe with the same names -
here is an example
DF <- data.frame(a=rnorm(10),b=runif(10),ID=0)
for (i in 1:10){
DF <-
(10),ID=i))
instead.
Cheers
Petr
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Troels
Ring
Sent: Friday, December 04, 2015 5:03 PM
To: r-help@r-project.org
Subject: [R] dataframe rbind
Dear friends - I have a very simple question - I generate a num
Try reading and following the Help file, ?rbind.data.frame.
You are inventing your own syntax, not using R's.
Incidentally, growing the frames as you do is generally a bad idea.
Search r-help archives for why.
Cheers,
Bert
Bert Gunter
"Data is not information. Information is not knowledge.
On 04 Dec 2015, at 17:03 , Troels Ring wrote:
> Dear friends - I have a very simple question -
> I generate a number of dataframes with identical names and want to combine
> them into one large dataframe with the same names -
> here is an example
>
> DF <-
lp-boun...@r-project.org] On Behalf Of Troels Ring
Sent: Friday, December 4, 2015 10:03 AM
To: r-help@r-project.org
Subject: [R] dataframe rbind
Dear friends - I have a very simple question -
I generate a number of dataframes with identical names and want to
combine them into one large dataframe wi
boun...@r-project.org] On Behalf Of Troels
> Ring
> Sent: Friday, December 04, 2015 5:03 PM
> To: r-help@r-project.org
> Subject: [R] dataframe rbind
>
> Dear friends - I have a very simple question - I generate a number of
> dataframes with identical names and want to combine t
6 matches
Mail list logo