GradQuant Sponsored Introduction to R Workshop Heather Hulton VanTassel 1/16/2014
What is R? R is an integrated suite of software facilities for data manipulation, calculation and graphical display.
Download R Studio Download R here – Helpful Manuals for R: – R intro manual – “R Cookbook” by Paul Teetor
Workshop Outline I.Familiarizing oneself with the R studio interface II.Basics on using R III.Getting help on functions – learn how to help yourself! IV.Basic functions/commands V.Brief intro on data management and analysis
Familiarizing with the R Studio Interface Switch to R studio!
The Basics - Useful tips on entering commands R is case sensitive! Commands are separated either by a semi-colon (‘;’), or by a new line Comments can be put in text, starting with a hashmark (‘#’) If a command is not complete at the end of a line, R will give a different prompt, by default (‘+’)
The Basics Switch to R studio!
Let’s get some help ?!?! Use help(functionname) to get help – ?functionname also works Use args(functionname) for a quick reminder of the function arguments Use example (functionname) to see examples Use ??keyword for help searching – help.search(“keyword”)
Let’s get some help ?!?! Switch to R studio!
The Most Common Commands The basics of coding! Switch to R studio!
Intro to Data Management/Analysis R comes with many built in data sets! – We will explore how we can play around with some of them! Let’s first learn how to import a data set Let’s Switch to R studio!
Questions? Let’s take some time to reflect and review what we have learned!
What would you want covered in Advanced Topics? Let’s take some time to make sure we are on the same page!