search for: allcon

Displaying 4 results from an estimated 4 matches for "allcon".

Did you mean: llcon
2010 May 26
2
writing function : can't find an object
...posA<-get(paste(c("Pos",x),collapse="")) posB<-get(paste(c("Pos",y),collapse="")) av<-get(paste(c("Trad",y),collapse="")) #apply some change on element columns then create only one data frame with the three elements allcon<-ddply(rbind(av[,1:3], transform(posA,prix=POSITION*SETTLEMENT,SETTLEMENT=NULL), transform(posB, prix = -POSITION * SETTLEMENT, SETTLEMENT = NULL, POSITION = POSITION * -1)), "DESCRIPTION",summarise,pl=sum(prix),quantity=sum(POSITION)) #remove the date in $...
2010 May 13
2
long command line cut in 2 parts
Dear group, I have this command line in a function: zz<-merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL,VALUE= NULL,PL=-VALUE*pl,quantity=NULL),PosB,all.x=T,sort=F) I want to cut it in 2 lines (just for convenient purpose). Here is what I did : zz<-merge(transform(merge(value,allcon,all.y=T),SHORTDESCRIPTION=NULL, + VALUE=NULL,PL=-VALUE*pl,quantity=NULL),PosB,al...
2010 May 11
1
merge two data frames
Dear group, I have these 2 following data frame: allcon <- structure(list(DESCRIPTION = structure(1:17, .Label = c("COFFEE C Jul/10", "COPPER May/10", "CORN Jul/10", "CORN May/10", "COTTON NO.2 Jul/10", "CRUDE OIL miNY May/10", "GOLD Jun/10", "HENRY HUB NATURAL GAS May/10&qu...
2010 May 20
6
writing function
Dear group, I am trying to write functions, but as a beginner, everything is not so obvious. Let's say I want the results in a list of elemts like this : tot1, tot2, etc Here is a function: toto <- function(x,y) { for(i in x:y){ paste(c("tot",i),collapse="")<-(i*2) } } If I type this : >toto(1,5) I get this message error: Error in paste(c("tot",