Difference between revisions of "R tutorial"

From "A B C"
Jump to navigation Jump to search
 
(281 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
  
{{dev}}
+
This is a hub for a first introduction to '''R''', for students of one of my workshops or courses. I have subdivided the material into (somewhat) independent learning units that you can work through at your own pace, but in sequence.
  
 +
The units have ''Deliverables'' and ''Prerequisites'' - please ignore these sections, they are for use in a more formal course setting.
  
This is a tutorial introduction to '''R''' for users with no previous background in the platform or the language.  
+
You need to work through these units '''before''' you come to the workshop. There are two reasons:
  
 +
* (i) installation of software is very specific to your computer and we can't walk you through this in a room full of people. It would take so much time that we won't get anything else done.
 +
* (ii) When you are working with '''R''' - like with any computer language or natural language, the key is repetition, repetition, repetition. The more you prime yourself with this material, the more you will profit when we actually meet in class. I hope to see everyone radiant and elated, and not lost before we even begin. Let's do this!
  
__TOC__
 
  
  
 
 
==The environment==
 
wd, help, menu items, workspace, loading and running scripts
 
  
Standard packages included, data available
 
  
  
 
+
==The Units==
  
==Simple commands==
+
{{Smallvspace}}
Including functions
 
  
 +
; Start with this:
 +
* [[FND-Biocomputing_setup| Set up your computer for biocomputing work]]
  
 +
{{Smallvspace}}
  
 
+
; Install R and make sure everything works:
==Scalar datatypes==
+
* [[RPR-Installation| Installing R and RStudio]]
Definition, change, operations with, functions to work on...
+
* [[RPR-Setup| Setup]]
 +
* [[RPR-Console| The "Console"]]
 +
* [[RPR-Help| Getting Help]]
  
 
+
{{Smallvspace}}
==Vectors==
 
  
 +
; Explore how to get '''R''' to work with data:
 +
* [[RPR-Syntax_basics| R Syntax]]
 +
* [[RPR-Objects-Vectors| Vectors]]
 +
* [[RPR-Objects-Data_frames| Data frames]]
 +
* [[RPR-Objects-Lists| Lists]]
  
 +
{{Smallvspace}}
  
 
+
; The one unit that will save your ***, over and over again:
==Matrices, tables, frames==
+
* [[RPR-Subsetting| Subsetting and Filtering]]
  
Subsetting,mselecting and filtering
+
{{Smallvspace}}
  
 +
; First steps towards programming:
 +
* [[RPR-Subsetting| Subsetting and Filtering]]
 +
* [[RPR-Control_structures| Control structures]]
 +
* [[RPR-Functions| Functions]]
  
 +
{{Smallvspace}}
  
 
+
; Maybe optional? Meh, just work through this anyway, as time permits. It'll be on the exam.
==Data manipulations==
+
* [[RPR-Subsetting| Subsetting and Filtering]]
Transformation
+
* [[RPR-Plotting| First Plots]]
Search
+
* [[RPR-Coding_style| Coding Style]]
  
  
 
+
{{Vspace}}
==Writing functions==
 
  
 
 
 
==Installing new functions==
 
 
 
 
 
==Numeric output==
 
 
 
 
 
==Graphic output==
 
 
 
 
 
 
 
==Notes==
 
==Notes==
 
<references />
 
<references />
  
 +
 +
{{Vspace}}
  
  
&nbsp;
+
----
==Further reading and resources==
 
<!-- {{#pmid:21627854}} -->
 
<!-- {{WWW|WWW_UniProt}} -->
 
<!-- <div class="reference-box">[http://www.ncbi.nlm.nih.gov]</div> -->
 
  
 +
{{Vspace}}
  
&nbsp;
 
 
[[Category:Applied_Bioinformatics]]
 
[[Category:Applied_Bioinformatics]]
 +
[[Category:R]]
 
</div>
 
</div>

Latest revision as of 15:52, 8 May 2018

R tutorial


This is a hub for a first introduction to R, for students of one of my workshops or courses. I have subdivided the material into (somewhat) independent learning units that you can work through at your own pace, but in sequence.

The units have Deliverables and Prerequisites - please ignore these sections, they are for use in a more formal course setting.

You need to work through these units before you come to the workshop. There are two reasons:

  • (i) installation of software is very specific to your computer and we can't walk you through this in a room full of people. It would take so much time that we won't get anything else done.
  • (ii) When you are working with R - like with any computer language or natural language, the key is repetition, repetition, repetition. The more you prime yourself with this material, the more you will profit when we actually meet in class. I hope to see everyone radiant and elated, and not lost before we even begin. Let's do this!




The Units

 
Start with this


 
Install R and make sure everything works


 
Explore how to get R to work with data


 
The one unit that will save your ***, over and over again


 
First steps towards programming


 
Maybe optional? Meh, just work through this anyway, as time permits. It'll be on the exam.


 

Notes