Re: [R] Need a variant of rbind for datasets with different numbers of columns

2007-08-23 Thread hadley wickham
You might try rbind.fill in the reshape package. Hadley On 8/22/07, Kirsten Beyer [EMAIL PROTECTED] wrote: Hello. I am looking for a function that will allow me to paste rows together without regard for the numbers of columns in the datasets to be joined. The only columns where it matters

[R] Need a variant of rbind for datasets with different numbers of columns

2007-08-22 Thread Kirsten Beyer
Hello. I am looking for a function that will allow me to paste rows together without regard for the numbers of columns in the datasets to be joined. The only columns where it matters if they are aligned correctly are at the beginning - the rest of the columns represent differing numbers of ICD9

Re: [R] Need a variant of rbind for datasets with different numbers of columns

2007-08-22 Thread jim holtman
Where is the data coming from since it has a variable number of columns in each row? Is it coming from a text file? If so, you can use the fill=TRUE option when reading to fill out empty columns. You need to provide at least a subset of the data so we can see what you are working with. On