Re: [R] Error using ddply inside user-defined function

2012-08-08 Thread Jennifer Sabatier
Thank you Brian and Dennis, for your help. Those solutions worked for a single calculation but I need to replicate it a couple hundred times. This is what worked: This is what I needed: ** allocation <- function(vr1, vr2, vr3) { ** d<- ave(vr1+vr2+vr3, vn$MECH.NAME

Re: [R] Error using ddply inside user-defined function

2012-08-07 Thread Brian Diggs
A few comments in-line below On 8/7/2012 1:53 PM, Jennifer Sabatier wrote: PROV.PM.FBCTS <- c(0.00 ,0.00, 33205.19, 25994.56, 23351.37, 26959.56 ,27632.58, 26076.24, 0.00, 0.00 , 6741.42, 18665.09 ,18129.59 ,21468.39 ,21294.60 ,22764.82, 26076.73) FBCTS.INV.TOT <- c(0 , 0, 958612, 487