Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread Frank E Harrell Jr
What is the original intent? The bandwidth:productivity ratio is not looking encouraging for this problem. Frank On 07/13/2010 12:38 PM, schuster wrote: Hello, are you trying to pase SAS code (or lightly modified SAS code) and run it in R? Then you are right: the hard part is parsing the c

Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread schuster
Hello, are you trying to pase SAS code (or lightly modified SAS code) and run it in R? Then you are right: the hard part is parsing the code. I don't believe that's possible without a custom parser, and even then it's really hard to parse all the SAS "sub languages" right: data step, macro c

Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread Duncan Murdoch
On 13/07/2010 8:39 AM, Roger Deangelis wrote: 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 so

Re: [R] SAS Proc summary/means as a R function

2010-07-13 Thread Roger Deangelis
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

Re: [R] SAS Proc summary/means as a R function

2010-07-12 Thread RICHARD M. HEIBERGER
Please get a copy of R for SAS and SPSS Users *by* *Muenchen*, Robert A. http://www.springer.com/statistics/computanional+statistics/book/978-0-387-09417-5 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.e

Re: [R] SAS Proc summary/means as a R function

2010-07-12 Thread Erik Iverson
On 07/12/2010 07:16 PM, Roger Deangelis wrote: 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=;

[R] SAS Proc summary/means as a R function

2010-07-12 Thread Roger Deangelis
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