Metaprogramming in R: Advanced Statistical Programming for Data Science, Analysis and Finance
Thomas Mailund
- 出版商: Apress
- 出版日期: 2017-06-02
- 定價: $1,180
- 售價: 8.0 折 $944
- 語言: 英文
- 頁數: 120
- 裝訂: Paperback
- ISBN: 1484228804
- ISBN-13: 9781484228807
-
相關分類:
R 語言、Data Science
立即出貨
相關主題
商品描述
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.
What You'll Learn
- 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
Who This Book Is For
Those with at least some experience with R and certainly for those with experience in other programming languages.
商品描述(中文翻譯)
學習如何操作函數和表達式以修改 R 語言的解釋方式。本書是 R 語言元編程的入門,因此您將編寫程序來操作其他程序。《Metaprogramming in R》向您展示如何將代碼視為可以生成、分析或修改的數據。
R 是一種非常高級的語言,其中所有操作都是函數,所有函數都是可以操作的數據。本書向您展示如何利用 R 在函數調用和表達式求值方面的自然靈活性,在 R 語言內部創建小型特定領域語言以擴展 R。
您將學到什麼:
- 了解 R 中函數的結構
- 深入了解函數調用
- 使用 R 表達式和環境
- 操縱 R 中的表達式
- 使用替換
本書適合對 R 有一定經驗的人,尤其是對其他編程語言有經驗的人。