Re: [R] How to change output 'csv' file

2010-02-03 Thread Dennis Murphy
Hi: You can also use the melt() function in the reshape package: using a small snippet of your data as a test case, library(reshape) > df Scenario Numbers ABC XYZ PQR 1 Sc_1 1 22 18.0 6 2 Sc_2 2 24 16.5 11 > melt(df, id = c('Scenario', 'Numbers')) Scenario Numbers v

Re: [R] How to change output 'csv' file

2010-02-03 Thread David Winsemius
On Feb 3, 2010, at 7:09 AM, Amelia Livington wrote: Dear R helpers After executing the R code, where the last few lines of the code are something like given below. ## Part of my R code n = 20 . final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, P

[R] How to change output 'csv' file

2010-02-03 Thread Amelia Livington
Dear R helpers   After executing the R code, where the last few lines of the code are something like given below.     ## Part of my R code     n = 20   .   final_output = data.frame(Numbers = numbers, ABC = data1, XYZ = data2, PQR = data3)   write.csv(data.frame(Scenario