-
Notifications
You must be signed in to change notification settings - Fork 0
/
introduction.html
155 lines (140 loc) · 12.3 KB
/
introduction.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>1 Introduction | A Comprehensive Guide to Use R</title>
<meta name="author" content="Africano BYAMUGISHA">
<meta name="description" content="R is hot. Whether measured by more than 6,500+ add-on packages, the 2,000,000+ users or the 100,000+ R Meetup groups currently in existence, there can be little doubt that interest in the R...">
<meta name="generator" content="bookdown 0.33 with bs4_book()">
<meta property="og:title" content="1 Introduction | A Comprehensive Guide to Use R">
<meta property="og:type" content="book">
<meta property="og:url" content="https://github.io/africanobyamugisha/introduction.html">
<meta property="og:image" content="https://github.io/africanobyamugisha/images/flyer.png">
<meta property="og:description" content="R is hot. Whether measured by more than 6,500+ add-on packages, the 2,000,000+ users or the 100,000+ R Meetup groups currently in existence, there can be little doubt that interest in the R...">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="1 Introduction | A Comprehensive Guide to Use R">
<meta name="twitter:description" content="R is hot. Whether measured by more than 6,500+ add-on packages, the 2,000,000+ users or the 100,000+ R Meetup groups currently in existence, there can be little doubt that interest in the R...">
<meta name="twitter:image" content="https://github.io/africanobyamugisha/images/flyer.png">
<!-- JS --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://kit.fontawesome.com/6ecbd6c532.js" crossorigin="anonymous"></script><script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="libs/bootstrap-4.6.0/bootstrap.min.css" rel="stylesheet">
<script src="libs/bootstrap-4.6.0/bootstrap.bundle.min.js"></script><script src="libs/bs3compat-0.4.2/transition.js"></script><script src="libs/bs3compat-0.4.2/tabs.js"></script><script src="libs/bs3compat-0.4.2/bs3compat.js"></script><link href="libs/bs4_book-1.0.0/bs4_book.css" rel="stylesheet">
<script src="libs/bs4_book-1.0.0/bs4_book.js"></script><script src="libs/htmlwidgets-1.6.1/htmlwidgets.js"></script><script src="libs/plotly-binding-4.10.1/plotly.js"></script><script src="libs/typedarray-0.1/typedarray.min.js"></script><link href="libs/crosstalk-1.2.0/css/crosstalk.min.css" rel="stylesheet">
<script src="libs/crosstalk-1.2.0/js/crosstalk.min.js"></script><link href="libs/plotly-htmlwidgets-css-2.11.1/plotly-htmlwidgets.css" rel="stylesheet">
<script src="libs/plotly-main-2.11.1/plotly-latest.min.js"></script><script src="libs/kePrint-0.0.1/kePrint.js"></script><link href="libs/lightable-0.0.1/lightable.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- CSS --><style type="text/css">
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
</style>
<link rel="stylesheet" href="bs4_style.css">
</head>
<body data-spy="scroll" data-target="#toc">
<div class="container-fluid">
<div class="row">
<header class="col-sm-12 col-lg-3 sidebar sidebar-book"><a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
<div class="d-flex align-items-start justify-content-between">
<h1>
<a href="index.html" title="">A Comprehensive Guide to Use R</a>
</h1>
<button class="btn btn-outline-primary d-lg-none ml-2 mt-1" type="button" data-toggle="collapse" data-target="#main-nav" aria-expanded="true" aria-controls="main-nav"><i class="fas fa-bars"></i><span class="sr-only">Show table of contents</span></button>
</div>
<div id="main-nav" class="collapse-lg">
<form role="search">
<input id="search" class="form-control" type="search" placeholder="Search" aria-label="Search">
</form>
<nav aria-label="Table of contents"><h2>Table of contents</h2>
<ul class="book-toc list-unstyled">
<li><a class="" href="index.html">*</a></li>
<li><a class="" href="about-the-author.html">About the Author</a></li>
<li><a class="" href="about-this-guide.html">About this guide</a></li>
<li><a class="active" href="introduction.html"><span class="header-section-number">1</span> Introduction</a></li>
<li><a class="" href="getting-started-setting-up.html"><span class="header-section-number">2</span> Getting Started & Setting Up</a></li>
<li><a class="" href="operators-data-objects.html"><span class="header-section-number">3</span> Operators & Data Objects</a></li>
<li><a class="" href="working-with-data.html"><span class="header-section-number">4</span> Working With Data</a></li>
<li><a class="" href="data-wrangling.html"><span class="header-section-number">5</span> Data Wrangling</a></li>
<li><a class="" href="data-visualisation.html"><span class="header-section-number">6</span> Data Visualisation</a></li>
<li><a class="" href="statistics-in-r.html"><span class="header-section-number">7</span> Statistics in R</a></li>
<li><a class="" href="functions.html"><span class="header-section-number">8</span> Functions</a></li>
<li><a class="" href="reproducible-results-markdown-quarto-notebooks.html"><span class="header-section-number">9</span> Reproducible Results (Markdown, Quarto & Notebooks)</a></li>
<li><a class="" href="r-shiny.html"><span class="header-section-number">10</span> R Shiny</a></li>
<li><a class="" href="github_r.html"><span class="header-section-number">11</span> Version control with Git and GitHub</a></li>
<li><a class="" href="additional-resources.html">Additional Resources</a></li>
</ul>
<div class="book-extra">
</div>
</nav>
</div>
</header><main class="col-sm-12 col-md-9 col-lg-7" id="content"><div id="introduction" class="section level1" number="1">
<h1>
<span class="header-section-number">1</span> Introduction<a class="anchor" aria-label="anchor" href="#introduction"><i class="fas fa-link"></i></a>
</h1>
<div class="inline-figure"><img src="images/introduction.png" style="width:50.0%"></div>
<p>R is hot. Whether measured by more than 6,500+ add-on packages, the 2,000,000+ users or the 100,000+ R Meetup groups currently in existence, there can be little doubt that interest in the R statistics language, especially for data analysis, is soaring.</p>
<p>In this section, we’ll explore what R is, why it’s popular in the data science community, and what you need to get started with R.</p>
<div id="what-is-r" class="section level2" number="1.1">
<h2>
<span class="header-section-number">1.1</span> What is R?<a class="anchor" aria-label="anchor" href="#what-is-r"><i class="fas fa-link"></i></a>
</h2>
<p><strong>R</strong> is a programming language that is widely used in data analysis, statistics, and data science. It was developed by Ross Ihaka and Robert Gentleman in 1995, and is now maintained by the R Development Core Team. <strong>R</strong> is a free and open-source programming language that is widely used for statistical computing and graphics. It provides a wide range of statistical and graphical techniques, and has a large community of users who contribute packages and tools to extend its functionality. R can be used for data analysis, machine learning, statistical modeling, visualization, and more.</p>
</div>
<div id="why-r" class="section level2" number="1.2">
<h2>
<span class="header-section-number">1.2</span> Why R?<a class="anchor" aria-label="anchor" href="#why-r"><i class="fas fa-link"></i></a>
</h2>
<p>R is a popular choice among data scientists and statisticians for several reasons. First, it’s free and open-source, so anyone can download and use it without cost. Second, it has a large and active community, which means that there are many resources and tools available for learning and using R. <em>“You have a lot of prepackaged stuff that’s already available, so you’re standing on the shoulders of giants,”</em> Third, R is highly flexible and customizable, allowing users to create their own functions and packages to extend its functionality. Finally, R has a wide range of packages available for data analysis, machine learning, and visualization, making it a versatile tool for data science projects.</p>
</div>
<div id="pre-requisites" class="section level2" number="1.3">
<h2>
<span class="header-section-number">1.3</span> Pre requisites<a class="anchor" aria-label="anchor" href="#pre-requisites"><i class="fas fa-link"></i></a>
</h2>
<p>To get started with R, you will need a few things:</p>
<ul>
<li>You need a desktop or laptop. Note: It runs on Windows, OS X and “a wide variety of Unix platforms,” but not yet on Android or iOS.</li>
<li>An internet Connection to download the softwares and packages, though you dont need to always be connected.</li>
<li>And most importantly the willingness for consistent learning. ** Consistency of the Power to the BRAIN ** <em>And . . . you are ready to start working with R</em>
</li>
</ul>
<blockquote>
<p><strong>“Despite our best efforts we always will” make errors, he notes. “The problem is that we often use tools and practices that make it difficult to find and correct our mistakes.”</strong></p>
</blockquote>
</div>
<div id="why-not-r" class="section level2" number="1.4" style="green">
<h2>
<span class="header-section-number">1.4</span> Why NOT R?<a class="anchor" aria-label="anchor" href="#why-not-r"><i class="fas fa-link"></i></a>
</h2>
<p>Well, R can appear daunting at first. That’s often because R syntax is different from that of many other languages, not necessarily because it’s any more difficult than others.</p>
<p><em>“I have written software professionally in perhaps a dozen programming languages, and the hardest language for me to learn has been R,”</em> writes consultant <strong>John D. Cook</strong> in a <a href="https://www.johndcook.com/blog/r_language_for_programmers/"> Web post about R programming for those coming from other languages</a></p>
<p>“The language is actually fairly simple, but it is unconventional.”</p>
</div>
</div>
<div class="chapter-nav">
<div class="prev"><a href="about-this-guide.html">About this guide</a></div>
<div class="next"><a href="getting-started-setting-up.html"><span class="header-section-number">2</span> Getting Started & Setting Up</a></div>
</div></main><div class="col-md-3 col-lg-2 d-none d-md-block sidebar sidebar-chapter">
<nav id="toc" data-toggle="toc" aria-label="On this page"><h2>On this page</h2>
<ul class="nav navbar-nav">
<li><a class="nav-link" href="#introduction"><span class="header-section-number">1</span> Introduction</a></li>
<li><a class="nav-link" href="#what-is-r"><span class="header-section-number">1.1</span> What is R?</a></li>
<li><a class="nav-link" href="#why-r"><span class="header-section-number">1.2</span> Why R?</a></li>
<li><a class="nav-link" href="#pre-requisites"><span class="header-section-number">1.3</span> Pre requisites</a></li>
<li><a class="nav-link" href="#why-not-r"><span class="header-section-number">1.4</span> Why NOT R?</a></li>
</ul>
<div class="book-extra">
<ul class="list-unstyled">
</ul>
</div>
</nav>
</div>
</div>
</div> <!-- .container -->
<footer class="bg-primary text-light mt-5"><div class="container"><div class="row">
<div class="col-12 col-md-6 mt-3">
<p>"<strong>A Comprehensive Guide to Use R</strong>" was written by Africano BYAMUGISHA. It was last built on 2023-01-05.</p>
</div>
<div class="col-12 col-md-6 mt-3">
<p>This book was built by the <a class="text-light" href="https://bookdown.org">bookdown</a> R package.</p>
</div>
</div></div>
</footer>
</body>
</html>