R All-in-One For Dummies
Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com
Copyright 2023 by John Wiley & Sons, Inc., Hoboken, New Jersey
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions
.
Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHORS HAVE USED THEIR BEST EFFORTS IN PREPARING THIS WORK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES, WRITTEN SALES MATERIALS OR PROMOTIONAL STATEMENTS FOR THIS WORK. THE FACT THAT AN ORGANIZATION, WEBSITE, OR PRODUCT IS REFERRED TO IN THIS WORK AS A CITATION AND/OR POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE PUBLISHER AND AUTHORS ENDORSE THE INFORMATION OR SERVICES THE ORGANIZATION, WEBSITE, OR PRODUCT MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING PROFESSIONAL SERVICES. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A SPECIALIST WHERE APPROPRIATE. FURTHER, READERS SHOULD BE AWARE THAT WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. NEITHER THE PUBLISHER NOR AUTHORS SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit https://hub.wiley.com/community/support/dummies
.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com
. For more information about Wiley products, visit www.wiley.com
.
Library of Congress Control Number: 2022950749
ISBN: 978-1-119-98369-9 (pbk); 978-1-119-98370-5 (ebk); 978-1-119-98371-2 (ebk)
R All-in-One For Dummies
To view this book's Cheat Sheet, simply go to www.dummies.com and search for R All-in-One For Dummies Cheat Sheet in the Search box.
Table of Contents
List of Tables
- Book 2 Chapter 1
- Book 2 Chapter 3
- Book 3 Chapter 1
- Book 3 Chapter 2
- Book 3 Chapter 3
- Book 3 Chapter 4
- Book 3 Chapter 5
- Book 3 Chapter 6
- Book 3 Chapter 7
- Book 3 Chapter 8
- Book 3 Chapter 9
- Book 3 Chapter 10
- Book 3 Chapter 11
- Book 3 Chapter 12
List of Illustrations
- Book 1 Chapter 1
- Book 1 Chapter 2
- Book 2 Chapter 1
- Book 2 Chapter 2
- Book 2 Chapter 5
- Book 2 Chapter 6
- Book 3 Chapter 1
- Book 3 Chapter 2
- Book 3 Chapter 3
- Book 3 Chapter 4
- Book 3 Chapter 5
- Book 3 Chapter 6
- Book 3 Chapter 7
- Book 3 Chapter 8
- Book 3 Chapter 9
- Book 3 Chapter 10
- Book 3 Chapter 11
- Book 3 Chapter 12
- Book 4 Chapter 1
- Book 4 Chapter 2
- Book 4 Chapter 3
- Book 4 Chapter 4
- Book 4 Chapter 5
- Book 4 Chapter 6
- Book 4 Chapter 7
- Book 4 Chapter 8
- Book 5 Chapter 1
- Book 5 Chapter 2
Guide
Pages
Introduction
In this book, Ive brought together all the information you need to hit the ground running with R. Its heavy on statistics, of course, because Rs creators built this language to analyze data.
So its necessary that you learn the foundations of statistics. Let me tell you at the outset: This All-in-One is not a cookbook. Ive never taught statistics that way and I never will. Before I show you how to use R to work with a statistical concept, I give you a strong grounding in what that concept is all about.
In fact, of this 5-book compendium are something like an introductory statistics text that happens to use R as a way of explaining statistical ideas.
gives you a set of projects that give you a chance to exercise your newly minted R skill set.
Want some more details? Read on.
About This All-in-One
The volume youre holding (or the e-book youre viewing) consists of five books that cover a lot of the length and breadth of R.
Book 1: Introducing R
As I said earlier in this introduction, R is a language that deals with statistics. Accordingly, introduces you to the fundamental concepts of statistics that you just have to know in order to progress with R.
You then learn about R and RStudio, a widely used development environment for working with R. I begin by describing the rudiments of R code, and I discuss R functions and structures.
R truly comes alive when you use its specialized packages, which you learn about early on.
Book 2: Describing Data
Part of working with statistics is to summarize data in meaningful ways. In , you find out how to do just that.
Most people know about averages and how to compute them. But thats not the whole story. In .
Book 3: Analyzing Data
addresses the fundamental aim of statistical analysis: to go beyond the data and help you make decisions. Usually, the data are measurements of a sample taken from a large population. The goal is to use these data to figure out whats going on in the population.
This opens a wide range of questions: What does an average mean? What does the difference between two averages mean? Are two things associated? These are only a few of the questions I address in , and you learn to use the R tools that help you answer them.
Book 4: Learning from Data
Effective machine learning model creation comes with experience. Accordingly, in you gain experience by completing machine learning projects. In addition to the projects you complete along with me, I suggest additional projects for you to try on your own.
Next page