search for: costcsolo

Displaying 1 result from an estimated 1 matches for "costcsolo".

2012 Sep 06
1
use of ddply() within function
...,collapse="") costmotoin = paste(c("CS_",costtype,"MOTO"),collapse="") browser() COSTaux_AVCAR <- ddply(CARaux,c("SC","YEAR"),summarize,costcsolo = sum(CARaux[[costcarin]])) COSTaux_AVMOTO <- ddply(CARaux,c("SC","YEAR"),summarize,costmoto= sum(CARaux[[costmotoin]] )) COSTaux <- join(COSTaux_AVCAR,COSTaux_AVMOTO,by=c("SC",&qu...