
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
The definitive guide for statisticians and data scientists who understand the advantages of becoming proficient in both R and Python
The first book of its kind, Python for R Users: A Data Science Approach makes it easy for R programmers to code in Python and Python users to program in R. Short on theory and long on actionable analytics, it provides readers with a detailed comparative introduction and overview of both languages and features concise tutorials with command-by-command translationsācomplete with sample codeāof R to Python and Python to R.
Following an introduction to both languages, the author cuts to the chase with step-by-step coverage of the full range of pertinent programming features and functions, including data input, data inspection/data quality, data analysis, and data visualization. Statistical modeling, machine learning, and data miningāincluding supervised and unsupervised data mining methodsāare treated in detail, as are time series forecasting, text mining, and natural language processing.
⢠Features a quick-learning format with concise tutorials and actionable analytics
⢠Provides command-by-command translations of R to Python and vice versa
⢠Incorporates Python and R code throughout to make it easier for readers to compare and contrast features in both languages
⢠Offers numerous comparative examples and applications in both programming languages
⢠Designed for use for practitioners and students that know one language and want to learn the other
⢠Supplies slides useful for teaching and learning either software on a companion website
Python for R Users: A Data Science Approach is a valuable working resource for computer scientists and data scientists that know R and would like to learn Python or are familiar with Python and want to learn R. It also functions as textbook for students of computer science and statistics.
A. Ohri is the founder of Decisionstats.com and currently works as a senior data scientist. He has advised multiple startups in analytics off-shoring, analytics services, and analytics education, as well as using social media to enhance buzz for analytics products. Mr. Ohri's research interests include spreading open source analytics, analyzing social media manipulation with mechanism design, simpler interfaces for cloud computing, investigating climate change and knowledge flows. His other books include R for Business Analytics and R for Cloud Computing.
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
1
Introduction to Python R and Data Science
1.1 What Is Python?
many of Pythonās keywords (if, else, while, for, etc.) are the same as in C, Python identifiers have the same naming rules as C, and most of the standard operators have the same meaning as C. Of course, Python is obviously not C and one major area where it differs is that instead of using braces for statement grouping, it uses indentation. For example, instead of writing statements in C like thisif (a < b) {max = b;} else {max = a;}Python just dispenses with the braces altogether (along with the trailing semicolons for good measure) and uses the following structure:if a < b:max = belse:max = aThe other major area where Python differs from Cālike languages is in its use of dynamic typing. In C, variables must always be explicitly declared and given a specific type such as int or double. This information is then used to perform static compileātime checks of the program as well as for allocating memory locations used for storing the variableās value. In Python, variables are simply names that refer to objects.
1.2 What Is R?
R is an integrated suite of software facilities for data manipulation, calculation and graphical display. It includes an effective data handling and storage facility, a suite of operators for calculations on arrays, in particular matrices, a large, coherent, integrated collection of intermediate tools for data analysis, graphical facilities for data analysis and display either onāscreen or on hardcopy, and a wellādeveloped, simple and effective programming language which includes conditionals, loops, userādefined recursive functions and input and output facilities.The term āenvironmentā is intended to characterize it as a fully planned and coherent system, rather than an incremental accretion of very specific and inflexible tools, as is frequently the case with other data analysis software.
1.3 What Is Data Science?
Table of contents
- Cover
- Title Page
- Table of Contents
- Preface
- Acknowledgments
- Scope
- Purpose
- Plan
- The Zen of Python
- 1 Introduction to Python R and Data Science
- 2 Data Input
- 3 Data Inspection and Data Quality
- 4 Exploratory Data Analysis
- 5 Statistical Modeling
- 6 Data Visualization
- 7 Machine Learning Made Easier
- 8 Conclusion and Summary
- Index
- End User License Agreement
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app