[R] Functional Programming patterns

Hadley Wickham h.wickham at gmail.com
Wed Nov 20 14:16:30 CET 2013


I have some notes on functional programming in R at http://adv-r.had.co.nz/.

Hadley

On Wed, Nov 20, 2013 at 3:02 AM,  <mohan.radhakrishnan at polarisft.com> wrote:
> Hi,
> '
> Not specific to 'R'. I search for patterns and found
> http://patternsinfp.wordpress.com/ which is too heavy for me. There is a
> 'Pragmatic Programmer' book on such patterns for Scala and Clojure. Is
> there anything for R ?
>
> I wanted to code this. Is there a functional pattern in R for multiple
> 'if' loops like this ?
>
>         if( is.na(str_extract(input,"T[^.]*")[1]) ){
>
>         }else{
>
>
> Thanks,
> Mohan
>
>
> This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
>
> Visit us at http://www.polarisFT.com
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.



-- 
http://had.co.nz/



More information about the R-help mailing list