Displaying 1 result from an estimated 1 matches for "bsebalavg".
2010 Jul 13
2
SAS Proc summary/means as a R function
Hi,
I am new to R.
I am trying to create an R function to do a SAS proc means/summary
proc.means ( data=bsebal;
class team year;
var ab h;
output out=BseBalAvg mean=;
run;)
I have a solution if I quote the the argument. The working code to produce
BseBalAvg
is very elegant.
normalize <- melt(bsebal, id=c("team", "year")) #
normalize data
transpose <- cast(normalize, team + year ~ var...