Re: [R] translate SAS code

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Tue, 22 May 2007 10:58:19 +0100

I am not sure if R can read formulas and if it does, it probably as characters. I would suggest you Copy and Paste Special (as values) onto a new sheet and save it a tab delimited files.

elyakhlifi mustapha wrote:
> good morning,
> I have some SAS code to translate in R code and when I export data from Excel to R I have to read formula writed as follow
>
> C604=(C181/S181)*(100-C182)*(100/85)
>
> or
>
> if C325=. then C740=(C346/C103)*100| else C740=(C346/C325)*100
>
> I find some difficulties to write a good program to read and calculate these formulas
> there are several kinds of formulas there are with conditional and without conditional
> can you help me please?
> thanks.
>
>
> _____________________________________________________________________________
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch 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.
>
>
>



R-help_at_stat.math.ethz.ch 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. Received on Tue 22 May 2007 - 10:09:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 May 2007 - 11:31:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.