R Programming for Data Science
Book information
Description
Data science has taken the world by storm. Every field of study and area of business has been affected as people increasingly realize the value of the incredible quantities of data being generated. But to extract value from those data, one needs to be trained in the proper data science skills. The R programming language has become the de facto programming language for data science. Its flexibility, power, sophistication, and expressiveness have made it an invaluable tool for data scientists around the world. This book is about the fundamentals of R programming. You will get started with the basics of the language, learn how to manipulate datasets, how to write functions, and how to debug and optimize code. With the fundamentals provided in this book, you will have a solid foundation on which to build your data science toolbox. Table of Contents Stay in Touch! Preface History and Overview of R What is R? What is S? The S Philosophy Back to R Basic Features of R Free Software Design of the R System Limitations of R R Resources Getting Started with R Installation Getting started with the R interface R Nuts and Bolts Entering Input Evaluation R Objects Numbers Attributes Creating Vectors Mixing Objects Explicit Coercion Matrices Lists Factors Missing Values Data Frames Names Summary Getting Data In and Out of R Reading and Writing Data Reading Data Files with read.table() Reading in Larger Datasets with read.table Calculating Memory Requirements for R Objects Using the readr Package Using Textual and Binary Formats for Storing Data Using dput() and dump() Binary Formats Interfaces to the Outside World File Connections Reading Lines of a Text File Reading From a URL Connection Subsetting R Objects Subsetting a Vector Subsetting a Matrix Subsetting Lists Subsetting Nested Elements of a List Extracting Multiple Elements of a List Partial Matching Removing NA Values Vectorized Operations Vectorized Matrix Operations Dates and Times Dates in R Times in R Operations on Dates and Times Summary Managing Data Frames with the dplyr package Data Frames The dplyr Package dplyr Grammar Installing the dplyr package select() filter() arrange() rename() mutate() group_by() %>% Summary Control Structures if-else for Loops Nested for loops while Loops repeat Loops next, break Summary Functions Functions in R Your First Function Argument Matching Lazy Evaluation The ... Argument Arguments Coming After the ... Argument Summary Scoping Rules of R A Diversion on Binding Values to Symbol Scoping Rules Lexical Scoping: Why Does It Matter? Lexical vs. Dynamic Scoping Application: Optimization Plotting the Likelihood Summary Coding Standards for R Loop Functions Looping on the Command Line lapply() sapply() split() Splitting a Data Frame tapply apply() Col/Row Sums and Means Other Ways to Apply mapply() Vectorizing a Function Summary Regular Expressions Before You Begin Primary R Functions grep() grepl() regexpr() sub() and gsub() regexec() The stringr Package Summary Debugging Something’s Wrong! Figuring Out What's Wrong Debugging Tools in R Using traceback() Using debug() Using recover() Summary Profiling R Code Using system.time() Timing Longer Expressions The R Profiler Using summaryRprof() Summary Simulation Generating Random Numbers Setting the random number seed Simulating a Linear Model Random Sampling Summary Data Analysis Case Study: Changes in Fine Particle Air Pollution in the U.S. Synopsis Loading and Processing the Raw Data Results Parallel Computation Hidden Parallelism Embarrassing Parallelism The Parallel Package Example: Bootstrapping a Statistic Building a Socket Cluster Summary Why I Indent My Code 8 Spaces About the Author
Similar books
The Art of Data Science
2018 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF