Re: [R] ifelse() applied on function

2013-08-11 Thread William Dunlap
CO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Ron Michael > Sent: Sunday, August 11, 2013 1:18 PM > To: r-help@r-project.org > Subject: [R] ifelse() applied on function >

Re: [R] ifelse() applied on function

2013-08-11 Thread Steve Lianoglou
Hi, On Sun, Aug 11, 2013 at 1:18 PM, Ron Michael wrote: > Hi, > > How can I apply ifelse function to chose appropriate function? > > My goal is user will chose lapply() function if "ChooseFn = T" otherwise to > chose sfLapply() from snowfall package. > > I am basically trying to avoid repeatatio

[R] ifelse() applied on function

2013-08-11 Thread Ron Michael
Hi,   How can I apply ifelse function to chose appropriate function?   My goal is user will chose lapply() function if "ChooseFn = T" otherwise to chose sfLapply() from snowfall package.   I am basically trying to avoid repeatation to write all internal steps, if user choses lapply or sfLapply. F