Displaying 2 results from an estimated 2 matches for "sc_1".
Did you mean:
sc1
2010 Feb 03
2
How to change output 'csv' file
...v(data.frame(Scenario = paste("Sc_", 1:n, sep = ""), final_output'), 'result.csv', row.names = FALSE)
## End of code
When I open the 'result.csv' file, my output is like
Scenario Numbers ABC XYZ PQR
Sc_1 1 22 18 6
Sc_2 2 24 16.5 11
SC_3 3 38 41 38
......................................................
2010 Feb 10
4
Readjusting the OUTPUT csv file
...t3.csv')$value3
# (Thus if 1st variable chosen is DEF, then name1 = DEF, value1 = 10. Had I chosen some otehr variable, then name1 and value1 will have different values).
Then I carry out my analysis and get the output as given below.
Scenario_and_range names values
Sc_1 (DEF LMN PQR) name1 10.04
Sc_1 (DEF LMN PQR) name2 8.21
Sc_1 (DEF LMN PQR) name3 7.23
Sc_2 (DEF LMN PQR) name1 9.96
Sc_2 (DEF LMN PQR) name2 8.47
Sc_2 (DEF LMN PQR) name3 ...