[R] data.frame and ddply

2010-04-16 Thread arnaud Gaboury
Dear group, Here is my df : futures - structure(list(CONTRAT = c(WHEAT May/10 , WHEAT May/10 , WHEAT May/10 , WHEAT May/10 , COTTON NO.2 May/10 , COTTON NO.2 May/10 , COTTON NO.2 May/10 , PLATINUM Jul/10 , SUGAR NO.11 May/10 , SUGAR NO.11 May/10 , SUGAR NO.11 May/10 , SUGAR NO.11 May/10

Re: [R] data.frame and ddply

2010-04-16 Thread Felipe Carrillo
, USA - Original Message From: arnaud Gaboury arnaud.gabo...@gmail.com To: r-help@r-project.org Sent: Fri, April 16, 2010 6:28:37 AM Subject: [R] data.frame and ddply Dear group, Here is my df : futures - structure(list(CONTRAT = c(WHEAT May/10 , WHEAT May/10 , WHEAT May/10

Re: [R] data.frame and ddply

2010-04-16 Thread arnaud Gaboury
:02 PM To: arnaud Gaboury; r-help@r-project.org Subject: Re: [R] data.frame and ddply You can do something like this after the output from opfut opfut - data.frame(opfut$CONTRAT,opfut$POSITION,opfut$SETTLEMENT) names(opfut) - c('CONTRAT','POSITION','SETTLEMENT') opfut Felipe D. Carrillo

[R] data.frame and ddply

2010-04-15 Thread arnaud Gaboury
Dear group, I have this following data.frame: c DESCRIPTION CREATED.DATE QUANITY CLOSING.PRICE 26 PRM HGH GD ALU 2010-04-09 -12,415.9000 27 PRM HGH GD ALU 2010-04-09 12,415.9000 28 PRIMARY NICKEL 2010-03-04 1 25,755.7100 29 PRIMARY NICKEL 2010-03-05