search for: rate_1

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

Did you mean: fate_1
2012 Apr 24
1
Multiple Conditional Statement
...ataframe. (Actually 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...
2009 Dec 28
2
Modified R Code
...Problem with me is to modify it for varaible number 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(...
2009 Dec 21
2
Reading multiple Input Files
...ates I am selecting for my analysis is random i.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(...