search for: rate_2

Displaying 3 results from an estimated 3 matches for "rate_2".

Did you mean: fate_2
2012 Apr 24
1
Multiple Conditional Statement
...I have a different datasets and to try to keep things simple, I am defining it as above). I have BUY or SELL transaction (defined under the column head Type in transactions dataframe) and depending on the type of transaction, I need to define the rates. So if the type is BUY, rate_1 = rate_A and rate_2 = rate_B and if the type is SELL, rate_1 = rate_B and rate_2 = rate_A. To begin with I have only one transaction in my data frame (I am not aware if it is BUY or SELL transaction) Thus, I tried if(Type == "Buy") {rate_1 = rate_A & rate_2 = rate_B} else {rate_1 = rate_B & ra...
2009 Dec 28
2
Modified R Code
...mber of rates.   I sincerely apologize for the inconvenience I have caused so far by asking queries. Please guide me.   Regards   Maithili   # ____________________________________________   MY ORIGINAL CODE (Actual HARD CODE)   ## ONS - PPA   # INPUT   rate_1   = read.csv('rate1_range.csv') rate_2   = read.csv('rate2_range.csv') rate_3   = read.csv('rate3_range.csv') rate_4   = read.csv('rate4_range.csv')   prob_1   = read.csv('rate1_probs.csv') prob_2   = read.csv('rate2_probs.csv') prob_3   = read.csv('rate3_probs.csv') prob_4   = read.csv(...
2009 Dec 21
2
Reading multiple Input Files
....e. it can be 2, can be 10 or even higher. The R-code I had written (with the guidance of R helpers obviously and I am really grateful to all of you) as of now is sort of hard coding when it comes to reading interest rates as an input e.g.   ## INPUT   rate_1   = read.csv('rate1_range.csv') rate_2   = read.csv('rate2_range.csv') rate_3   = read.csv('rate3_range.csv') rate_4   = read.csv('rate4_range.csv')   prob_1   = read.csv('rate1_probs.csv') prob_2   = read.csv('rate2_probs.csv') prob_3   = read.csv('rate3_probs.csv') prob_4   = read.csv(...