A very brief introduction to R

Slides:



Advertisements
Similar presentations
To err is human – to R is divine R from step 1 for the experimental biologist with an eye on the tomoRRow! Schraga Schwartz, Bioinformatic Workshop, June.
Advertisements

A very brief introduction to R - Matthew Keller Some material cribbed from: UCLA Academic Technology Services Technical Report Series (by Patrick Burns)
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
(Re) introduction to Linux and R Sarah Medland Boulder 2013.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
CVMSA Workshop Week 3 Dr. Melanie Martin October 1, 2013.
Seven good reasons why everyone should be using R.
Presented by Eroika Jeniffer.  What are we going to learn? - the use of chat in classroom - the most likely application on chat. And many more….. So,
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Java Swing Joon Ho Cho. What is Java Swing? Part of the Java Foundation Classes (JFC) Provides a rich set of GUI components Used to create a Java program.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
© 2004 The MathWorks, Inc. 1 MATLAB for C/C++ Programmers Support your C/C++ development using MATLAB’s prebuilt graphics functions and trusted numerics.
CS110/CS119 Introduction to Computing (Java)
A very brief introduction to R
Introduction to MCMC and BUGS. Computational problems More parameters -> even more parameter combinations Exact computation and grid approximation become.
A very brief introduction to using R & MX - Matthew Keller Some material cribbed from: UCLA Academic Technology Services Technical Report Series (by Patrick.
Introduction to R Clay Ford, StatLab September 11/12, 2013.
CSC 142 B 1 CSC 142 Java objects: a first view [Reading: chapters 1 & 2]
Chapter 1 Introduction to SAS ® Enterprise Guide ®
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Software – Applications software and programming languages.
Hands-on Introduction to R. We live in oceans of data. Computers are essential to record and help analyse it. Competent scientists speak C/C++, Java,
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Weka: Experimenter and Knowledge Flow interfaces Neil Mac Parthaláin
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
United Nations Economic Commission for Europe Statistical Division The Importance of Databases in the Dissemination Process Steven Vale, UNECE.
I Power Higher Computing Software Development Development Languages and Environments.
Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments.
Application Programming Interfaces. Java comes with a bunch of classes that are already written. Java comes with a bunch of classes that are already written.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
An Introduction to the R Statistical Programming Language
Chris Knight Beginners’ workshop.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
A quick guide to other statistical software
Fundamentals of Programming I Overview of Programming
Development Environment
A Playful Introduction to Programming by Jason R. Briggs
SAS: The last of the great mainframe stats packages
Lesson Objectives Aims You should be able to:
People used to install software on their computers
11.10 Human Computer Interface
Software, O/S & Interfaces
Getting Started with R.
Ch 1. A Python Q&A Session Bernard Chen 2007.
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
A451 Theory – 7 Programming 7A, B - Algorithms.
Content Generator and Software Licenses
Software engineering USER INTERFACE DESIGN.
Computers Are Your Future
Microsoft powerpoint - google slides - apple keynote
Analytics Lead, Enteric Diseases Epidemiology Branch DFWED/NCEZID/CDC
Lecture 1: Introduction
Today’s lesson – Python next steps
Code is on the Website Outline Comparison of Excel and R
Coding Concepts (Basics)
Software, O/S & Interfaces
Programming.
GRAPHICAL USER INTERFACE GITAM GADTAULA. OVERVIEW What is Human Computer Interface (User Interface) principles of user interface design What makes a good.
GRAPHICAL USER INTERFACE GITAM GADTAULA KATHMANDU UNIVERSITY CLASS PRESENTATION.
CS 1111 Introduction to Programming Spring 2019
Java objects: a first view
The Main Features of Operating Systems
Chapter 1: Programming Basics, Python History and Program Components
Using R for Data Analysis and Data Visualization
Web Application Development Using PHP
Programming Logic and Design Eighth Edition
An Introduction to SPSS
VoiceXML An investigation Author: Mya Anderson
Presentation transcript:

A very brief introduction to R - Matthew Keller & Steven Boker Some material cribbed from: UCLA Academic Technology Services Technical Report Series (by Patrick Burns) and presentations (found online) by Bioconductor, Wolfgang Huber and Hung Chen, & various Harry Potter websites

R, And the Rise of the Best Software Money Can’t Buy R programming language is a lot like magic... except instead of spells you have functions.

= muggle Like muggles, users of traditional stats software packages are limited in their ability to change their environment. They have to rely on algorithms that have been developed for them. The way they approach a problem is constrained by how employed programmers thought to approach them. And they have to pay money to use these constraining algorithms.

= wizard R users are like wizards. They can rely on functions developed for them by statistical researchers, but they can also create their own. They don’t have to pay for the use of them, and once experienced enough, they are almost unlimited in their ability to change their environment.

R Advantages Disadvantages Fast and free. State of the art: Statistical researchers provide their methods as R packages. SPSS and SAS are years behind R! 2nd only to MATLAB for graphics. Mx, WinBugs, and other programs use R. Active user community Excellent for simulation, programming, computer intensive analyses, etc. Not user friendly at start - steep learning curve, minimal GUI. Easy to make mistakes and not know. Working with large datasets is limited by RAM Some users complain about hostility on the R listserve

Learning R....

R-help listserve....

There are over 2000 add-on packages (http://cran. r-project This is an enormous advantage - new techniques available without delay, and they can be performed using the R language you already know. Allows you to build a customized statistical program suited to your own needs. Downside = as the number of packages grows, it is becoming difficult to choose the best package for your needs, & QC is an issue.

Typical R session Start up R via the GUI or favorite text editor Two windows: 1+ new or existing scripts (text files) - these will be saved Terminal – output & temporary input - usually unsaved

Typical R session R sessions are interactive Write small bits of code here and run it

Typical R session R sessions are interactive Write small bits of code here and run it Output appears here. Did you get what you wanted?

Typical R session R sessions are interactive Output appears here. Did you get what you wanted? Adjust your syntax here depending on this answer.

Typical R session R sessions are interactive

Typical R session R sessions are interactive At end, all you need to do is save your script file(s) - which can easily be rerun later.

Learning R Use http://www.rseek.org/ instead of google Because R is interactive, errors are your friends! ?lm gives you help on lm function. Reading help files can be very… helpful MOST IMPORTANT - the more time you spend using R, the more comfortable you become with it. After doing your first real project in R, you won’t look back. I promise.