Displaying 3 results from an estimated 3 matches for "rate_nam".
Did you mean:
rate_name
2010 Feb 19
1
How to use same function for diffrent input values
Dear R helpers
I have written some function (the actual code I have pasted at the end of mail) like say
indiv_rate = function(n, rate_name, rate, rate_rf1, rate_rf2, rate_rf3, rateprob1, rateprob2, rateprob3)
{
........some R commands
return(data.frame(rate_name, rates = round(rate_data, digits = 4)))
}
## INPUT
rates = indiv_rate(n = read.csv('number.csv')$n, rate_name = read.csv('rate.csv')$rate_name, rate...
2013 Apr 25
1
Linear Interpolation : Missing rates
Dear R forum
I have data.frame as
df = data.frame(rate_name = c("USD_1w", "USD_1w", "USD_1w", "USD_1w", "USD_1m", "USD_1m", "USD_1m", "USD_1m", "USD_2m", "USD_2m", "USD_2m", "USD_2m", "GBP_1w", "GBP_1w", "GBP_1w&...
2010 Feb 10
4
Readjusting the OUTPUT csv file
...y R code ******************************************************************
## Actualy I am dealing with more than 3 variables i.e. rates and thus my names are different in actual code.
## Beginning of a R code
## FUNCTION NO. 3
library(reshape)
no_rate = 3
combi_3 = function(n, N, rateA, rate_name1, rateA_rf1, rateA_rf2, rateA_rf3, rateAprob1, rateAprob2, rateAprob3,
rateB, rate_name2, rateB_rf1, rateB_rf2, rateB_rf3, rateBprob1, rateBprob2, rateBprob3,
rateC, rate_name3, rateC_rf1, rateC_rf2, rateC_rf3, rateCprob1, rateCprob2, rateCprob3)
{
rateA_pro...