Cover of Functional Programming in R

EPUB · English

Functional Programming in R

Advanced Statistical Programming for Data Science, Analysis and Finance

Price and availability

$54.99

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Stores: US, UK, Canada, EU, Australia.

Sign in to buy

The price is re-checked by the server before payment.

For personal use under the eBook licence.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Apress
Published
27 March 2017
ISBN
9781484227466
Subjects
Computer programming / software development, Compilers, Programming & scripting languages: general, Software Engineering, Computer programming / software engineering, Compilers and interpreters, Software Engineering

About this book

Master functions and discover how to write functional programs in R. In this concise book, you'll make your functions pure by avoiding side-effects; you'll write functions that manipulate other functions, and you'll construct complex functions using simpler functions as building blocks.In Functional Programming in R, you'll see how we can replace loops, which can have side-effects, with recursive functions that can more easily avoid them. In addition, the book covers why you shouldn't use recursion when loops are more efficient and how you can get the best of both worlds.Functional programming is a style of programming, like object-oriented programming, but one that focuses on data transformations and calculations rather than objects and state. Where in object-oriented programming you model your programs by describing which states an object can be in and how methods will reveal or modify that state, in functional programming you model programs by describing how functions translate input data to output data. Functions themselves are considered to be data you can manipulate and much of the strength of functional programming comes from manipulating functions; that is, building more complex functions by combining simpler functions.What You'll LearnWrite functions in R including infix operators and replacement functions Create higher order functionsPass functions to other functions and start using functions as data you can manipulateUse Filer, Map and Reduce functions to express the intent behind code clearly and safelyBuild new functions from existing functions without necessarily writing any new functions, using point-free programmingCreate functions that carry data along with themWho This Book Is ForThose with atleast some experience with programming in R.

Bibliographic data © Gardners Books Ltd.

Functional Programming in R by Thomas Mailund (eBook) | HELPERG Books