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.

Slides:



Advertisements
Similar presentations
Introduction to R Brody Sandel. Topics Approaching your analysis Basic structure of R Basic programming Plotting Spatial data.
Advertisements

R for Macroecology Aarhus University, Spring 2011.
Writing functions in R Some handy advice for creating your own functions.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Actuarial Modeling in R CAS Predictive Modeling Seminar Las Vegas October, 2007 Glenn Meyers, FCAS, MAAA Jim Guszcza, FCAS, MAAA.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
SHOU Haochang ( 寿昊畅 ) Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health July 11th, 2011 Nanjing University, China *Thanks to.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
Experiences in Integration of the 'R' System into Kepler Dan Higgins – National Center for Ecological Analysis and Synthesis (NCEAS), UC Santa Barbara.
Alternative text for elementary statistics –Elementary Concepts –Basic Statistics.
Introduction to R A. Di Bucchianico. Introduction to R2 Types of statistical software command-line software –requires knowledge of syntax of commands.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Guide To UNIX Using Linux Third Edition
Lecture 2 LISAM. Statistical software.. LISAM What is LISAM? Social network for Creating personal pages Creating courses  Storing course materials (lectures,
How to Use the R Programming Language for Statistical Analyses Part I: An Introduction to R Jennifer Urbano Blackford, Ph.D. Department of Psychiatry Kennedy.
Python plotting for lab folk Only the stuff you need to know to make publishable figures of your data. For all else: ask Sourish.
The “R” Statistical Package Naomi Altman Dept. of Statistics PSU.
What is R Muhammad Omer. What is R  R is the programing language software for statistical computing and data analysis  The R language is extensively.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
Computer Science Standard Level Mastery Aspects. Mastery Item Claimed JustificationWhere Listed Arrays Used to store the student data Lines P.
Hands-on Introduction to R. Outline R : A powerful Platform for Statistical Analysis Why bother learning R ? Data, data, data, I cannot make bricks without.
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
JAS3 + AIDA LC Simulations Workshop SLAC 19 th May 2003.
A B C Q R S! Coilín Minto Department of Biology, Dalhousie University.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
CISC474 - JavaScript 03/02/2011. Some Background… Great JavaScript Guides: –
Introduction to to R Emily Kalah Gade University of Washington Credit to Kristin Siebel for development of much of this PowerPoint.
Programming in R Getting data into R. Importing data into R In this session we will learn: Some basic R commands How to enter data directly into R How.
Arko Barman with modification by C.F. Eick COSC 4335 Data Mining Spring 2015.
Bina Ramamurthy 6/7/2014 CSE6511.  R is a software package for statistical computing.  R is an interpreted language  It is open source with high level.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Actuarial Modeling in R CAS Spring Meeting June, 2007 Glenn Meyers, FCAS, MAAA Jim Guszcza, FCAS, MAAA.
Piotr Wolski Introduction to R. Topics What is R? Sample session How to install R? Minimum you have to know to work in R Data objects in R and how to.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
1 3. Computing System Fundamentals 3.1 Language Translators.
Using Software in Teaching Statistics Damon Berridge, Centre for Applied Statistics, Dept of Mathematics & Statistics ESRC NCRM.
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,
Data Manipulation Steve Allison
R packages/libraries Data input/output Rachel Carroll Department of Public Health Sciences, MUSC Computing for Research I, Spring 2014.
Language Basics and Data Types ● What and why of Matlab. ● Matlab desktop. ● Familiarize ourselves with basics of language. ● Basic types of data that.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Ivan Ramler and Jessica Chapman.  Current Courses ◦ Intro Stat (Minitab, Fathom) ◦ Regression Analysis (Minitab, occasionally R) ◦ Probability (R, Maple)
Introduction to R Carol Bult The Jackson Laboratory Functional Genomics (BMB550) Spring 2011.
The Data Documentation Initiative: more discussion Chuck Humphrey University of Alberta Atlantic DLI Workshop 2005, Acadia University.
Data Organization Quality Assurance and Transformations.
© 2015 by Wade Rogers Introduction to R Cytomics Workshop December, 2015.
PROGRAMMING IN R Introduction to R. In this session I will: Introduce you to the R program and windows Show how to install R Write basic programs in R.
Data analysis Now I have data. What can I do with them? Old way: Export it to a text file, import it back to SAS, SPSS or some stat package Drawbacks:
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
Creating Games with PowerPoint: The SECRET: Sequence – the order of the slides Connection – how the slides link together.
R Roger Barlow HEP Computing seminar 21 st February 2008.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
“Moh’d Sami” AshhabSummer 2008University of Jordan MATLAB By (Mohammed Sami) Ashhab University of Jordan Summer 2008.
Chris Knight Beginners’ workshop.
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,
Pinellas County Schools
Introduction to R Chris Free. Introduction to R Free! Superior (if not comparable) to commercial alternatives Available on all platforms Not just for.
With the support of the LPP programme of the European Union 1 This project has been funded with support from the European Commission. This publication.
Introduction to Data Manipulation, Analysis, and Visualization with R Patrick Grof-Tisza.
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili ICRAF-Geoscience Lab.
Introduction to Matlab
Release Numbers MATLAB is updated regularly
A very brief introduction to R
(Mohammed Sami) Ashhab
Lab 1 Introductions to R Sean Potter.
Let's Learn Python and Pygame
Presentation transcript:

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 and reproduce steps. Can be used interactively but script or syntax files are commonly used to record and reproduce steps. R consists of a set of “base” routines and a large library of user supplied “packages” R consists of a set of “base” routines and a large library of user supplied “packages”

R documentation Basic manual for R Basic manual for R Venables, W. N. and Ripley, B. D., 4th edn Modern Applied Statistics with S. Springer, NY Venables, W. N. and Ripley, B. D., 4th edn Modern Applied Statistics with S. Springer, NY Free documentation on CRAN Free documentation on CRAN CRAN user help listserve CRAN user help listserve Searchable mail archives Searchable mail archives Google Google

Getting Help > help(command) > help(command) >?(command) >?(command) > help.search("matrix") > help.search("matrix") lists all functions whose help pages have a title or alias in which the text string “matrix” appears lists all functions whose help pages have a title or alias in which the text string “matrix” appears > apropos(“matrix”) > apropos(“matrix”) lists all function names that include the text “matrix” lists all function names that include the text “matrix”

R objects R is an object-oriented programming language R is an object-oriented programming language R functions operate on objects R functions operate on objects e.g., vectors, matrices, arrays, lists, data frames e.g., vectors, matrices, arrays, lists, data frames Basic analysis are typically conducted by working with DATA FRAMES Basic analysis are typically conducted by working with DATA FRAMES Generally try to avoid looping Generally try to avoid looping

Data Entry I generally use excel, save as a “csv” format, and then read into R I generally use excel, save as a “csv” format, and then read into R R can also read in other data structures such as SPSS, SAS, SYSTAT, ect... R can also read in other data structures such as SPSS, SAS, SYSTAT, ect...

Learning R Best way is to just start using it Best way is to just start using it Keep one of the reference cards handy Keep one of the reference cards handy Keep a file where you store examples of handy code/tricks so you can find them later Keep a file where you store examples of handy code/tricks so you can find them later

Let's start with a simple example