Displaying 1 result from an estimated 1 matches for "grp_1_cnt".
2008 Mar 04
1
help needed on function call
...names(yy)<-c("Group",paste("grp_",i,"_cnt",sep=""),paste("grp_",i,"_pct",sep=""))
xx<-merge(xx,yy,by.x="Group",all=TRUE)
}
print(xx)
}
The output is
> xyz <- freqgrp(dt,cat1,ind,2)
Group cnt pct grp_1_cnt grp_1_pct grp_2_cnt grp_2_pct
1 0 38 76 23 100 15 55.6
2 1 12 24 NA NA 12 44.4
>
But if I substitue the variable "cat1" in line {yy <- freqtot(df,cat1)}, it
doesn't output the correct results.
The motivation to writ...