[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-290697-105":59,"doc-detail-290697-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","the-book-of-r-a-first-course-in-programming-and-statistics","The Book of R - A first course in programming and statistics","","A comprehensive introduction to the R programming language that builds core skills for programming and statistical thinking. The book progresses from fundamentals such as numerics, vectors, matrices, data structures, and plotting, then covers functions, control flow, exceptions, file I/O, and practical programming workflow. It advances into statistics and probability, then statistical testing and modeling, including confidence concepts, hypothesis testing, ANOVA, and regression. Advanced visualization topics and appendices on installing R and using RStudio complete the learning path.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/the-book-of-r-a-first-course-in-programming-and-statistics/290697/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/the-book-of-r-a-first-course-in-programming-and-statistics/290697.png","ImageObject",300,407,{"name":92,"@type":93},"Olivia Brown","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-21","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What topics does the book cover in the programming parts?","Question",{"text":113,"@type":114},"It teaches the R language and programming fundamentals, including functions, conditions and loops, writing functions, exception handling, timing, visibility, and reading and writing files.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does the book structure learning in statistics and probability?",{"text":118,"@type":114},"It moves from elementary statistics and basic data visualization to probability and common probability distributions, then connects these ideas to sampling distributions, confidence, and hypothesis testing.",{"name":120,"@type":111,"acceptedAnswer":121},"What advanced visualization skills are included?",{"text":122,"@type":114},"It covers advanced plot customization and the grammar of graphics, including color definition, plotting in higher dimensions, and interactive 3D plots.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},290697,1790059160,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146},16904993612988,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","THE BOOK OF  \nR  \nA F I R S T C O U R S E I N  \nP R O G R A M M I N G A N D S T A T I S T I C S  \nT I L M A N M . D A V I E S  \nThe Book of R  \nThe Book of R  \nA first Course in Programming and Statistics  \nby Til man M . Davies  \nSan Francisco  \nThe Book of R. Copyright © 2016 by Tilman M. Davies.  \nAll rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.  \nPrinted in USA First printing  \n20 19 18 17 16 1 2 3 4 5 6 7 8 9 ISBN-10: 1-59327-651-6  \nISBN-13: 978-1-59327-651-5  \nPublisher: William Pollock  \nProduction Editor: Riley Hoffman  \nCover Illustration: Josh Ellingson  \nInterior Design: Octopod Studios  \nDevelopmental Editor: Liz Chadwick  \nTechnical Reviewer: Debbie Leader  \nCopyeditor: Kim Wimpsett  \nCompositor: Riley Hoffman  \nProofreader: Paula Fleming  \nIndexer: BIM Creatives, LLC  \nFor information on distribution, translations, or bulk sales, please contact No Starch Press, Inc. directly:  \nNo Starch Press, Inc.  \n245 8th Street, San Francisco, CA 94103 phone: 415.863.9900; [info@nostarch.com](info@nostarch.com)[ ](info@nostarch.com)[www.nostarch.com](www.nostarch.com)  \nLibrary of Congress Cataloging-in-Publication Data  \nNames: Davies, Tilman M . , author.  \nTitle: The book of R : a first course in programming and statistics / by Tilman M . Davies .  \nDescription: San Francisco : No Starch Press, [2016] | Includes bibliographical references and index.  \nIdentifiers: LCCN 2015035305| ISBN 9781593276515 | ISBN 1593276516  \nSubjects: LCSH: R (Computer program language) | Computer programming. | Statistics--Data processing.  \nClassification: LCC QA76.73.R3 D38 2016 | DDC 519.50285--dc23  \nLC record available at [http://lccn.loc.gov/2015035305](http://lccn.loc.gov/2015035305)  \nNo Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc. Other product and company names mentioned herein may be the trademarks of their respective owners. Rather than use a trademark symbol with every occurrence of a trademarked name, we are using the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.  \nThe information in this book is distributed on an “As Is” basis, without warranty. While every precaution has been taken in the preparation of this work, neither the author nor No Starch Press, Inc. shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in it.  \nProf. Dr. Dr. Jochen Weniger, 1925–2015 Ein Wissenschaftler. Mein Opa.  \nB RI E F CO NTE NTS  \nPreface ............................................................................. xxiii  \nAcknowledgments ................................................................... xxv  \nIntroduction ......................................................................... xxvii  \nPART I: THE LANGUAGE  \nChapter 1: Getting Started ........................................................... 3  \nChapter 2: Numerics, Arithmetic, Assignment, and Vectors .............................. 17  \nChapter 3: Matrices and Arrays ...................................................... 39  \nChapter 4: Non-numeric Values ....................................................... 59  \nChapter 5: Lists and Data Frames ..................................................... 89  \nChapter 6: Special Values, Classes, and Coercion ...................................... 103  \nChapter 7: Basic Plotting ............................................................. 127  \nChapter 8: Reading and Writing Files ................................................. 147  \nPART II: PROGRAMMING  \nChapter 9: Calling Functions ......................................................... 165","cbCaisGbsz5XsvFc","https://ap.wps.com/l/cbCaisGbsz5XsvFc","pdf",15505475,835,"English","# Preface\n# Acknowledgments\n# Introduction\n# PART I: THE LANGUAGE\n## Chapter 1: Getting Started\n## Chapter 2: Numerics, Arithmetic, Assignment, and Vectors\n## Chapter 3: Matrices and Arrays\n## Chapter 4: Non-numeric Values\n## Chapter 5: Lists and Data Frames\n## Chapter 6: Special Values, Classes, and Coercion\n## Chapter 7: Basic Plotting\n## Chapter 8: Reading and Writing Files\n# PART II: PROGRAMMING\n## Chapter 9: Calling Functions\n## Chapter 10: Conditions and Loops\n## Chapter 11: Writing Functions\n## Chapter 12: Exceptions, Timings, and Visibility\n# PART III: STATISTICS AND PROBABILITY\n## Chapter 13: Elementary Statistics\n## Chapter 14: Basic Data Visualization\n## Chapter 15: Probability\n## Chapter 16: Common Probability Distributions\n# PART IV: STATISTICAL TESTING AND MODELING\n## Chapter 17: Sampling Distributions and Conﬁdence\n## Chapter 18: Hypothesis Testing\n## Chapter 19: Analysis of Variance\n## Chapter 20: Simple Linear Regression\n## Chapter 21: Multiple Linear Regression\n## Chapter 22: Linear Model Selection and Diagnostics\n# PART V: ADVANCED GRAPHICS\n## Chapter 23: Advanced Plot Customization\n## Chapter 24: Going Further with the Grammar of Graphics\n## Chapter 25: Deﬁning Colors and Plotting in Higher Dimensions\n## Chapter 26: Interactive 3D Plots\n# Appendix A: Installing R and Contributed Packages\n# Appendix B: Working with RStudio\n# Reference List\n# Index","[{\"question\":\"What topics does the book cover in the programming parts?\",\"answer\":\"It teaches the R language and programming fundamentals, including functions, conditions and loops, writing functions, exception handling, timing, visibility, and reading and writing files.\"},{\"question\":\"How does the book structure learning in statistics and probability?\",\"answer\":\"It moves from elementary statistics and basic data visualization to probability and common probability distributions, then connects these ideas to sampling distributions, confidence, and hypothesis testing.\"},{\"question\":\"What advanced visualization skills are included?\",\"answer\":\"It covers advanced plot customization and the grammar of graphics, including color definition, plotting in higher dimensions, and interactive 3D plots.\"}]","The Book of R - A first course in programming and statistics | PDF",1789642382,2104]