Re: [R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-03 Thread Meenu Sahi
: > Apologies to list: Should have "replied to all". > > -- > DW > > Begin forwarded message: > > > From: David Winsemius > > Date: August 1, 2009 3:02:58 PM EDT > > To: Meenu Sahi > > Subject: Re: [R] Add columns in a dataframe and fi

Re: [R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-02 Thread John Kane
t;State1","State3") mydata4<-data.frame(Change,state) dd <- data.frame(Change=pstate[,1], prstate =stack(pstate[2:5])$values, state=stack(pstate[2:5])$ind ) # merge(mydata4, dd, by=c("Change", "state")) =========

Re: [R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-01 Thread David Winsemius
Apologies to list: Should have "replied to all". -- DW Begin forwarded message: > From: David Winsemius > Date: August 1, 2009 3:02:58 PM EDT > To: Meenu Sahi > Subject: Re: [R] Add columns in a dataframe and fill them from > another table according to a criteria

Re: [R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-01 Thread Meenu Sahi
Dear R users My apologizes for not writing in the correct format due to my ignorance. In the future I will write more clearly. I hope to contribute to the R community in the process of picking up the language professionally. I have now written the R code which is attached in a notepad file. I've si

Re: [R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-01 Thread David Winsemius
On Aug 1, 2009, at 9:52 AM, Meenu Sahi wrote: Deare R users I am new to R. What I want to do is explained below;- I have table called States.Prob which is given below:- This table gives the probabilities of the changes in the swap curve depending on the state of the swap curve. I want to put t

[R] Add columns in a dataframe and fill them from another table according to a criteria

2009-08-01 Thread Meenu Sahi
Deare R users I am new to R. What I want to do is explained below;- I have table called States.Prob which is given below:- This table gives the probabilities of the changes in the swap curve depending on the state of the swap curve. I want to put these probabilities in my dataframe mydata(given af