Displaying 2 results from an estimated 2 matches for "rate4".
Did you mean:
rate
2009 Dec 26
1
Reading Input file
Dear R helpers
I have some files in my say 'WORK' directory and the file names are say rate1.csv, rate2.csv, rate3.csv, rate4.csv
Because of some other requirement, I need to run the following commands
n = 4
rates = NULL
for (i in 1:n)
rates[i] = (paste(`rate', i, ‘.csv`, sep = ‘’))
# this gives me "rate1.csv" "rate2.csv" and so on
#My problem is now I need to relate these file name...
2009 Dec 28
2
Modified R Code
...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('rate4_probs.csv')
rate1_min_1 = rate_1$rate1_range1_min
rate1_max_1 = rate_1$rate1_range1_max
rate1_min_...