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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to