Skip to content
Prev 178949 / 398506 Next

R Macro Question

On Wed, 29 Apr 2009, Jenn wrote:

            
I suspect that 'it' can also be done easily in R.

But you have not really told the list what 'it' is.

You should provide some R code that actually works- as the R Posting Guide 
recommends. The 'code' above is not syntactically valid R, so you haven't 
really run it and neither can we.

The function 'recode' is not in base R, so you have to provide it or refer 
to the contributed package frmo which it is obtained.

I can only guess what you are trying to do, but I'd say mapply() or one of 
its relatives (lapply, tapply, ... ) is probably equal to the type of task 
you wish to perform.


HTH,

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901