Hi, I have a problem. I would like to put my SAS-code into R. Could I do that, if yes, how? Best regards Jim Gustafsson _______________________________________________________________________________ Codan Insurance, Gammel Kongevej 60, DK-1790 Copenhagen V telephone: +45 33 55 55 55, fax: +45 33 55 21 22 e-mail: jgu@codan.dk http://www.codan.dk [[alternative HTML version deleted]]
On Thu, 12 Feb 2004 12:12:01 +0100 Jim Gustafsson <jgu at codan.dk> wrote:> Hi, > I have a problem. > I would like to put my SAS-code into R. > Could I do that, if yes, how? > > > Best regards > Jim GustafssonJust reverse the procedure you use when you put R code into SAS. ;) --- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University
Jim Gustafsson <jgu at codan.dk> wrote:> I have a problem.Boy, do you ever.> I would like to put my SAS-code into R. > Could I do that, if yes, how?Right. I have a couple of questions for you too. (1) How long is a piece of string? (2) How do I bring peace, prosperity, and universal brotherhood to the world? Finally, let me draw your attention to the addendum which is appended to all r-help postings these days: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html cheers, Rolf Turner rolf at math.unb.ca
[Sorry. Just can't resist...] Probably quite easy. Something like: system("sas mysascode.sas") Andy> From: Jim Gustafsson > > Hi, > I have a problem. > I would like to put my SAS-code into R. > Could I do that, if yes, how? > > > Best regards > Jim Gustafsson > ______________________________________________________________ > _________________ > Codan Insurance, Gammel Kongevej 60, DK-1790 Copenhagen V > telephone: +45 33 55 55 55, fax: +45 33 55 21 22 > e-mail: jgu at codan.dk > http://www.codan.dk > [[alternative HTML version deleted]] >------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}}
Perhaps he means that he wants to translate SAS code to R code? I couldn't tell from the email. If you want to execute SAS code from R, you can definitely do what you suggest (tongue in cheek perhaps) but still legitimate question? "Liaw, Andy" <andy_liaw at merck.com> Sent by: r-help-bounces at stat.math.ethz.ch 02/12/2004 08:17 AM To: "'Jim Gustafsson'" <jgu at codan.dk>, r-help at stat.math.ethz.ch cc: Subject: RE: [R] R-help [Sorry. Just can't resist...] Probably quite easy. Something like: system("sas mysascode.sas") Andy> From: Jim Gustafsson > > Hi, > I have a problem. > I would like to put my SAS-code into R. > Could I do that, if yes, how? > > > Best regards > Jim Gustafsson > ______________________________________________________________ > _________________ > Codan Insurance, Gammel Kongevej 60, DK-1790 Copenhagen V > telephone: +45 33 55 55 55, fax: +45 33 55 21 22 > e-mail: jgu at codan.dk > http://www.codan.dk > [[alternative HTML version deleted]] >------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}} ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.