Re: [R] Adding columns to dataframe

2008-05-15 Thread Bert Jacobs
d empty dummy columns, but the order of the column names should be the same as in the dataframe SDF2 Bert _ From: jim holtman [mailto:[EMAIL PROTECTED] Sent: 15 May 2008 17:41 To: Bert Jacobs Subject: Re: [R] Adding columns to dataframe Does the data in the two dataframes match so

Re: [R] Adding columns to dataframe

2008-05-15 Thread jim holtman
; looking for a better solutions. Thx for the effort. > > > > Bert > > > -- > > *From:* jim holtman [mailto:[EMAIL PROTECTED] > *Sent:* 15 May 2008 18:12 > > *To:* Bert Jacobs > *Subject:* Re: [R] Adding columns to dataframe

Re: [R] Adding columns to dataframe

2008-05-15 Thread Bert Jacobs
lto:[EMAIL PROTECTED] Sent: 15 May 2008 18:12 To: Bert Jacobs Subject: Re: [R] Adding columns to dataframe Will somethink like this work to just add dummy columns: > x <- data.frame(a=1:10, b=1:10) > y <- data.frame(a=1, c=1, d=1, e=1, f=1) > # get unique names in y > uniq