I want to set Dir
equal to "//RATES/@Original_Rates/GR-N240"
for the first pass through the for loop.
forms <- c("GR-N240", "GR-N250", "GR-N270", "GR-N280")
for(i in forms) {
Dir <- "//RATES/@Original_Rates/i"
setwd(DIR)
}
I want to set Dir
equal to "//RATES/@Original_Rates/GR-N240"
for the first pass through the for loop.
forms <- c("GR-N240", "GR-N250", "GR-N270", "GR-N280")
for(i in forms) {
Dir <- "//RATES/@Original_Rates/i"
setwd(DIR)
}