diff --git a/00-introduction.html b/00-introduction.html index 5a068a08..b8b03dd0 100644 --- a/00-introduction.html +++ b/00-introduction.html @@ -301,10 +301,10 @@
In this lesson we will take you through the very first things you need to get R working.
Remember, these lessons assume we are using the pre-configured virtual machine instances provided to you at a genomics workshop. Much @@ -423,16 +421,14 @@
The programming language R has been around since 1995, and was created by Ross Ihaka and Robert Gentleman at the University of Auckland, New Zealand. R is based off the S programming language developed at Bell Labs and was developed to teach intro statistics. See this slide deck by Ross Ihaka for more info on the subject.
-At more than 20 years old, R is fairly mature and growing in popularity. However, programming isn’t a popularity contest. Here are key advantages of analyzing data in R:
@@ -462,8 +458,7 @@In these lessons, we will be making use of a software called RStudio, an Integrated Development Environment (IDE). RStudio, like most IDEs, provides a graphical interface to R, making it more user-friendly, and providing @@ -482,8 +476,7 @@
Open a web browser and enter the URL you used to log in at the
terminal (provided by your instructors), followed by :8787
.
For example, if your URL was ec2.12.2.45.678.compute-1.amazonaws.com,
@@ -494,8 +487,7 @@
If your URL has spaces, your web browser may interpret it as a search query.
@@ -508,8 +500,7 @@You should now see the RStudio interface:
-One of the first benefits we will take advantage of in RStudio is something called an RStudio Project. An RStudio project allows you to more easily:
@@ -549,8 +540,7 @@Now that we are ready to start exploring R, we will want to keep a record of the commands we are using. To do this we can create an R script:
@@ -587,16 +576,14 @@Here are the major windows (or panes) of the RStudio environment:
In the “Files” tab you can select a file and download it from your cloud instance (click the “more” button) to your local computer. Uploads @@ -653,8 +639,7 @@
Although we won’t be working with R at the terminal, there are lots of reasons to. For example, once you have written an RScript, you can @@ -665,8 +650,7 @@
Now that we have covered the more aesthetic aspects of RStudio, we can get to work using some commands. We will write, execute, and save the commands we learn in our genomics_r_basics.R script @@ -708,8 +692,7 @@
What happens when you try to enter the getwd()
command
in the Console pane?
A function in R (or any computing language) is a short program that takes some input and returns some output. Functions may seem like an advanced topic (and they are), but you have already used at least one @@ -797,8 +779,7 @@
setwd()
Try the following functions by writing them in your script. See if you can guess what they do, and make sure to add comments to your script @@ -853,8 +834,7 @@
[1] 3
What if you wanted to round to one significant digit?
round()
can do this, but you may first need to read the
help to find out how. To see the help (In R sometimes also called a
@@ -943,8 +923,7 @@
Use help.search()
to find R functions for the following
statistical functions. Remember to put your search query in quotes
@@ -981,8 +960,7 @@
Here is one last bonus we will mention about RStudio. It’s difficult to remember all of the arguments and definitions associated with a given function. When you start typing the name of a function and hit the @@ -996,8 +974,7 @@
Template licensed under CC-BY 4.0 by The Carpentries
-Built with sandpaper (0.16.5), pegboard (0.7.6), and varnish (1.0.3)
+Built with sandpaper (0.16.6), pegboard (0.7.6), and varnish (1.0.4)