Displaying 3 results from an estimated 3 matches for "data_lab".
2009 Dec 15
1
Changing Column names in (Output) csv file
Dear R helpers
Following is a part of R code.
data_lab <- expand.grid(c("R11", "R12", "R13"), c("R21", "R22", "R23"), c("R31", "R32", "R33"), c("R41", "R42", "R43"), c("R51", "R52", "R53"), c("R61...
2009 Dec 28
2
Modified R Code
...= 2.65
rate2_max3 = 2.99
If there are say 10 rates, then this will continue till
rate10_min1 = ......
rate10_max1 = ......
.........
so on.
## ________________________________________________________
# PROBLEM - B
# Suppose Rij = ith Rate and jth range. (There are 3 ranges i.e. j= 3).
data_label = expand.grid(c("R11", "R12", "R13"), c("R21", "R23", "R23"))
# gives the output like
data_label
Var1 Var2
1 R11 R21
2 R12 R21
3 R13 R21
4 R11 R22
5 R12 R22
6 R1...
2010 Feb 10
4
Readjusting the OUTPUT csv file
...ot;)
R25 = paste(rate_name2, 5, sep = "")
R31 = paste(rate_name3, 1, sep = "")
R32 = paste(rate_name3, 2, sep = "")
R33 = paste(rate_name3, 3, sep = "")
R34 = paste(rate_name3, 4, sep = "")
R35 = paste(rate_name3, 5, sep = "")
data_lab <- expand.grid(c(R11, R12, R13, R14, R15), c(R21, R22, R23, R24, R25), c(R31, R32, R33, R34, R35))
range_prob <- list()
range_prob[[1]] = c(rateA_prob1, rateA_prob2, rateA_prob3, rateA_prob4, rateA_prob5 )
range_prob[[2]] = c(rateB_prob1, rateB_prob2, rateB_prob3, rateB_prob4, rateB_pro...