Question: In this assignment you will learn R by using swirl - R package. It will guide you by step - by - step process through
In this assignment you will learn R by using swirl R package.
It will guide you by stepbystep process through a selfpaced interactive learning environment. Assuming that you've already installed R and RStudio, you need to install swirl package. To install swirl package, type the following in R studio console:
install.packagesswirl
and press Enter, then just type the following, pressing Enter after each line:
libraryswirl
swirl
Select Option ieR Programming" Complete the following exercises within R Programming"
: Basic Building Blocks
: Workspace and Files
: Sequences of Numbers
: Vectors
: Missing Values
: Subsetting Vectors
: Matrices and Data Frames
: Functions
: Looking at Data
Once the exercises are complete, upload the Rhistory file in the blackboard. The Rhistory file can be found in your working directory. You can locate the working directory by typing getwd in Rstudio console
To navigate through swirl you need to remember the following commands:
When you are at the R prompt : Typing skip allows you to skip the current question.
Typing play lets you experiment with R on your own; swirl will ignore what you do
UNTIL you type nxt which will regain swirl's attention.
Typing bye causes swirl to exit.
Typing main returns you to swirl's main menu.
Typing info dis
Source on Save
Run
Source
instapackagesSwir
:Top Level :
Console
Terminal
Background Jobs
R
ype aemos tor some aemos, ne ip tor onitne nep or
hep start for an HTML browser interface to help.
Type q to quit
instapackages swir
WARNING: Rtoos is required to build R packages but is not currenty instaled lease download and instal the appropriate version of Rtools before proceeding:
https: cran.
rstudio.combidisy
Instaling package into Cas ib is unspecified
aso instaling the dependencies "utfos" "pirdard. pkgconfigsys "crayon',
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
