Re: [R] Reorganize(stack data) a dataframe inducing names

2011-08-02 Thread Francesca
Works perfectly. Thanks. f. On 1 August 2011 18:22, jim holtman wrote: > Try this: had to add extra names to your data since it was not clear > how it was organized. Next time use 'dput' to enclose data. > > > x <- read.table(textConnection(" index time key date values > + 13732 27965

Re: [R] Reorganize(stack data) a dataframe inducing names

2011-08-01 Thread jim holtman
Try this: had to add extra names to your data since it was not clear how it was organized. Next time use 'dput' to enclose data. > x <- read.table(textConnection(" index time key date values + 13732 27965 DATA.Q211.SUM.Index04/08/11 1.42 + 13733 27974 DATA.Q211.SUM.Index

Re: [R] Reorganize(stack data) a dataframe inducing names

2011-08-01 Thread Francesca
Dear Contributors thanks for any help you can provide. I searched the threads but I could not find any query that satisfied my needs. This is my database: index time values 13732 27965 DATA.Q211.SUM.Index04/08/11 1.42 13733 27974 DATA.Q211.SUM.Index05/10/11 1.45 1

Re: [R] Reorganize(stack data) a dataframe inducing names

2011-07-27 Thread David Winsemius
On Jul 27, 2011, at 4:28 AM, Francesca wrote: Dear Contributors, thanks for collaboration. I am trying to reorganize data frame, that looks like this: n1.Index DatePX_LASTn2.Index Date.1 PX_LAST.1 n3.Index Date.2 PX_LAST.2 1 NA04/02/071

Re: [R] Reorganize(stack data) a dataframe inducing names

2011-07-27 Thread Jim Lemon
On 07/27/2011 06:28 PM, Francesca wrote: Dear Contributors, thanks for collaboration. I am trying to reorganize data frame, that looks like this: n1.Index DatePX_LASTn2.Index Date.1 PX_LAST.1 n3.Index Date.2 PX_LAST.2 1 NA04/02/071.34

[R] Reorganize(stack data) a dataframe inducing names

2011-07-27 Thread Francesca
Dear Contributors, thanks for collaboration. I am trying to reorganize data frame, that looks like this: n1.Index DatePX_LASTn2.Index Date.1 PX_LAST.1 n3.Index Date.2 PX_LAST.2 1 NA04/02/071.34 NA 04/02/07 1.36