1.

Record Nr.

UNINA9910254854903321

Autore

Mailund Thomas

Titolo

Metaprogramming in R : advanced statistical programming for data science, analysis and finance / / by Thomas Mailund

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2017

ISBN

9781484228814

1484228812

Edizione

[1st ed. 2017.]

Descrizione fisica

1 online resource (XI, 103 p. 4 illus.)

Disciplina

005.11

Soggetti

Computer programming

Programming languages (Electronic computers)

Mathematical statistics

R (Computer program language)

Programming Techniques

Programming Languages, Compilers, Interpreters

Probability and Statistics in Computer Science

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

1. Anatomy of a Function -- 2. Inside a Function-Call -- 3. Expressions and Environments -- 4. Manipulating Expressions  -- 5. Working with Substitutions.

Sommario/riassunto

Learn how to manipulate functions and expressions to modify how the R language interprets itself. This book is an introduction to metaprogramming in the R language, so you will write programs to manipulate other programs. Metaprogramming in R shows you how to treat code as data that you can generate, analyze, or modify. R is a very high-level language where all operations are functions and all functions are data that can be manipulated. This book shows you how to leverage R's natural flexibility in how function calls and expressions are evaluated, to create small domain-specific languages to extend R within the R language itself. You will: Find out about the anatomy of a function in R Look inside a function call Work with R expressions and environments Manipulate expressions in R Use substitutions .