search for: costaux_avmoto

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

2012 Sep 06
1
use of ddply() within function
...aste(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","YEAR")) COSTaux[ ,"PURP"...