[R] SAS Proc summary/means as a R function
Roger Deangelis
xlr82sas at gmail.com
Tue Jul 13 14:39:22 CEST 2010
Thanks Richard and Erik,
I hate to buy the book and not find the solution to the following:
proc.means <- function(....) {
deparse(match.call()[-1])
}
proc.means(this is a sentence)
unexpected symbol in "proc means(this is)
One possible solution would be to 'peek' into the memory buffer that holds
the
function arguments.
It is easy to replicate the 'dataset' output for many SAS procs(ie
transpose, freq, summary, means...)
I am not interested in 'report writing in R'.
The hard part is parsing the SAS syntax, I wish R had a drop down to PERL.
per1 on;
some perl code
perl off;
also
sas on;
some SAS code
sas off;
The purpose of parmbuff is to turn off of Rs scanning and resolution of
function arguments
and just provide the bare text between '(' and ')' in the function call.
This is a very powerful construct.
A function would provide something like
sas.on(
)
--
View this message in context: http://r.789695.n4.nabble.com/SAS-Proc-summary-means-as-a-R-function-tp2286888p2287350.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list