search for: thisisasentence

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

2010 Jul 13
2
SAS Proc summary/means as a R function
...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],deparse) } proc.means(thisisasentence) Result .... "thisisasentence" Note sapply allows for multiple arguments and is not needed but is more robust. # However this does not work proc.means(this is a sentence) unexpected symbol in "proc means(this is) It appears that the second space causes the error...