An Introduction to R and Python for Data Analysis: A Side-By-Side Approach
本书以并排对照方式介绍R和Python,帮助已熟悉其中一种语言的读者快速学习另一种,内容涵盖基础操作、常见任务及面向对象与函数式编程。
The advancements in data science in the last decade have given statistics a new direction.Among various software and programming languages, R and Python have played an essential role in strengthening the applications of data science and have created their own advantages.Ideally, it is more advantageous for a data scientist to know both R and Python.It is understood that learning a programming language is typically easier if one is already familiar with any other programming language.Keeping aside the discussion over the superiority of R and Python over each other, this book greatly helps in learning R and Python for those readers who are knowledgeable about either of R and Python and are curious to learn the other one.The book consists of 15 chapters divided into three sections.The first part, comprising eight chapters, introduces the commands for basic operations in Python and R. The following second section, consisting of five chapters, describes the methods and commands for common tasks and patterns, including the commands for input and output of data, packages, logic, loops, and selected visualization techniques in R and Python.The third section has two chapters devoted to object-oriented and functional programming in R and Python.The book presents selected commands with illustrations, but the side-by-side presentation of the same commands, along with their results in R and Python for the same task, makes the understanding easier and clearer for the reader.The examples are explained in an easy-to-understand manner in both R and Python.The theoretical concepts are presented in steps at several places, and their implementation is illustrated in both R and Python.Using different fonts in the typing and presentation style, one can quickly identify the commands, making the book visually easy to read.The language of the book is simple and reads like a self-learning book, which does not require a strong background in mathematics and statistics.Various exercises are also given at the end of each chapter.The book can prove itself useful in any introductory laboratory course related to computing.