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.
Programming Types of Testing.
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.
Srinivasulu Rajendran Centre for the Study of Regional Development (CSRD) School of Social Sciences (SSS) Jawaharlal Nehru University (JNU) New Delhi -
Introduction to Statistical Computing in Clinical Research Biostatistics 212 Course director: Mark Pletcher Teaching Assistant: Lee Zane.
1 / 31 CS 425/625 Software Engineering User Interface Design Based on Chapter 15 of the textbook [SE-6] Ian Sommerville, Software Engineering, 6 th Ed.,
1 Lab Session-I CSIT120 Spring2001 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 continues (Session.
Seven good reasons why everyone should be using R.
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
Programming Logic and System Analysis
Air Quality Data Analysis Using Open Source Tools
Unit Six Assignment 1 Chris Boardley.
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.
Introduction to Java Tonga Institute of Higher Education.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
A First Program Using C#
GCSE ICT User Interfaces. Learning Intentions: To understand the concept of a Windows operating system and have a basic understanding of GUI. Success.
© 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)
SOFTWARE.
Systems Software & Operating systems
Introduction to MCMC and BUGS. Computational problems More parameters -> even more parameter combinations Exact computation and grid approximation become.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
A very brief introduction to using R & MX - Matthew Keller Some material cribbed from: UCLA Academic Technology Services Technical Report Series (by Patrick.
Intro to R R is a free version of S-plus R is a free version of S-plus Can be used interactively but script or syntax files are commonly used to record.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
1 Chapter 2 First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
CSC 142 B 1 CSC 142 Java objects: a first view [Reading: chapters 1 & 2]
Chapter 1 Introduction to SAS ® Enterprise Guide ®
Copyright © 2006, SAS Institute Inc. All rights reserved. SAS Enterprise Guide Old Proc – New Tricks? Tim Trussell Academic Program, SAS Canada world diabetes.
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.
Create speaking avatars and use them as an effective learning tool.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
LINUX MINT 13 Introduction Linux Mint is a modern, elegant and comfortable operating system which is both powerful and easy to use. The minimum requirements.
I Power Higher Computing Software Development Development Languages and Environments.
Task 1B Multiple Choice Quiz By Joshua Ashman. Quiz Link Quiz Part Quiz.
Task 1B Multiple Choice Quiz. Quiz Link Part 1: Z Z Part2:
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
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.
Look Ma! No Hands! 03/18/2003 Presented by Chris Smith Marshall County Information Services
Intermediate 2 Computing Unit 2 - Software Development.
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
An Introduction to the R Statistical Programming Language
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Chris Knight Beginners’ workshop.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Fundamentals of Programming I Overview of Programming
R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili ICRAF-Geoscience Lab.
Lesson Objectives Aims You should be able to:
A very brief introduction to R
Software, O/S & Interfaces
Getting Started with R.
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
A451 Theory – 7 Programming 7A, B - Algorithms.
Today’s lesson – Python next steps
Code is on the Website Outline Comparison of Excel and R
Coding Concepts (Basics)
Software, O/S & Interfaces
Chapter 1: Programming Basics, Python History and Program Components
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.