R https://intellectualpedia.org/index.php/ en R - Coding, Generate a Basic Fatality Chart in U.S. States https://intellectualpedia.org/index.php/ryanjbridglal-r-coding-generate-basic-fatality-chart-us-states <span>R - Coding, Generate a Basic Fatality Chart in U.S. States</span> <span><span>RyanJBridglal</span></span> <span><time datetime="2023-09-03T06:32:29+00:00" title="Sunday, September 3, 2023 - 06:32">Sun, 09/03/2023 - 06:32</time> </span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Ensure:</p><p>   TidyVerse is installed.<br />   Dslabs is installed.</p><p> </p><p>R - Script:</p><p>library(tidyverse)<br />library(dslabs)<br />data(murders)</p><p>murders%&gt;%<br /> ggplot(aes(population, total, label=abb, color=region)) + geom_label()</p><p> </p><img src="/sites/default/files/inline-images/murderCode.jpg" data-entity-uuid="acdfacec-11ba-409c-a139-6c445986387e" data-entity-type="file" width="694" height="1291" loading="lazy" /><p> </p><p>If you use the print command from the console.....</p><p><strong>print (murders)</strong></p><img data-entity-uuid="4a08ad4e-446a-4849-9868-bf4fa1e76d10" data-entity-type="file" src="/sites/default/files/inline-images/murderCode2.jpg" width="838" height="931" loading="lazy" /><p> </p></div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Blog comments</h2> </section> <div class="field field--name-field-blog-tags field--type-entity-reference field--label-above"> <div class="field__label">Blog tags</div> <div class="field__items"> <div class="field__item"><a href="/index.php/taxonomy/term/6" hreflang="en">R</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/12" hreflang="en">R Programming</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/14" hreflang="en">Machine Learning</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/15" hreflang="en">R Programming, Fatality Chart</a></div> </div> </div> Sun, 03 Sep 2023 06:32:29 +0000 RyanJBridglal 24 at https://intellectualpedia.org How to Install R on Ubuntu https://intellectualpedia.org/index.php/ryanjbridglal-how-install-r-ubuntu <span>How to Install R on Ubuntu</span> <span><span>RyanJBridglal</span></span> <span><time datetime="2023-08-30T05:55:08+00:00" title="Wednesday, August 30, 2023 - 05:55">Wed, 08/30/2023 - 05:55</time> </span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><h3>How to Install R on Ubuntu</h3><p><strong>Install R from Ubuntu repositories</strong>. The installation process is simple and requires only a few steps. However, since the default Ubuntu libraries are not updated as frequently as the CRAN repositories, there is a possibility of installing an older version of R.</p><p> </p><p>To install R from the Ubuntu repository:</p><p>1. Open the terminal and update the <em>apt</em> package lists:</p><p><code><strong>   sudo apt update</strong></code></p><p>2. Install the R base package and its dependencies using the following  command:</p><p><code><strong>   sudo apt install r-base r-base-dev -y</strong></code></p><p> </p><p> </p><p>The <code><strong>r-base-dev</strong></code> package enables users to install new packages using the <code><strong>install.packages()</strong></code> function within the R console.</p><p>3. Type <code><strong>R</strong></code> and hit enter to verify that R has been installed:</p><p><code><strong>   R</strong></code></p><p> </p><p><strong>You will get the following syntax!</strong></p><p><em>ryan@ROGVB:~$ R</em></p><p><em>R version 4.1.2 (2021-11-01) -- "Bird Hippie"</em><br /><em>Copyright (C) 2021 The R Foundation for Statistical Computing</em><br /><em>Platform: x86_64-pc-linux-gnu (64-bit)</em></p><p><em>R is free software and comes with ABSOLUTELY NO WARRANTY.</em><br /><em>You are welcome to redistribute it under certain conditions.</em><br /><em>Type 'license()' or 'licence()' for distribution details.</em></p><p><em> Natural language support but running in an English locale</em></p><p><em>R is a collaborative project with many contributors.</em><br /><em>Type 'contributors()' for more information and</em><br /><em>'citation()' on how to cite R or R packages in publications.</em></p><p><em>Type 'demo()' for some demos, 'help()' for on-line help, or</em><br /><em>'help.start()' for an HTML browser interface to help.</em><br /><em>Type 'q()' to quit R.</em><br /> </p></div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Blog comments</h2> </section> <div class="field field--name-field-blog-tags field--type-entity-reference field--label-above"> <div class="field__label">Blog tags</div> <div class="field__items"> <div class="field__item"><a href="/index.php/taxonomy/term/4" hreflang="en">R, How To, Install</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/5" hreflang="en">How To</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/6" hreflang="en">R</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/12" hreflang="en">R Programming</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/13" hreflang="en">Data Science</a></div> <div class="field__item"><a href="/index.php/taxonomy/term/14" hreflang="en">Machine Learning</a></div> </div> </div> Wed, 30 Aug 2023 05:55:08 +0000 RyanJBridglal 11 at https://intellectualpedia.org