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
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
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
3 matches
Mail list logo