Displaying 1 result from an estimated 1 matches for "parmbuff".
2010 Jul 13
2
SAS Proc summary/means as a R function
...e working code to produce
BseBalAvg
is very elegant.
normalize <- melt(bsebal, id=c("team", "year")) #
normalize data
transpose <- cast(normalize, team + year ~ variable ,mean) # team year h
ab (means)
Here is the problem
In SAS we have the option parmbuff which puts all the 'macro arguments' text
into one string
ie
%macro procmeans(text)/parmbuff;
%put &text;
%mend procmeans;
%procmeans(This is a sentence);
result
This is a sentence
Here is my R code
# This works
proc.means <- function(....) {
sapply(match.call()[-1],depars...