Short Introduction to R

Size: px
Start display at page:

Download "Short Introduction to R"

Transcription

1 Short Introduction to R Paulino Pérez 1 José Crossa 2 1 ColPos-México 2 CIMMyT-México June, CIMMYT, México-SAGPDB Short Introduction to R 1/51

2 Contents 1 Introduction 2 Simple objects 3 User defined functions 4 Graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 2/51

3 Contents Introduction R? 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 3/51

4 R? Introduction R? R is a software for statistical analysis and graphics. It was developed by Ross Ihaka y Robert Gentleman. R was specially designed to perform data analysis, but can be used also as a programming language. R is distributed freely under the GNU license(general Public Licence). The development is done by the R Development Team. R is available as source code and binary files compiled for windows and Mac. The R language allows the user to use loops to perform complex analysis. CIMMYT, México-SAGPDB Short Introduction to R 4/51

5 Contents Introduction R and other sofwares 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 5/51

6 R and other softwares Introduction R and other sofwares Why R? R is a free software, it can be executed in Windows, Linux and Mac. Excellent documentation and graphical capabilities. Most of the programs written in S plus can be run in R. It is powerful and easy to learn. It can be extended through the use of packages. CIMMYT, México-SAGPDB Short Introduction to R 6/51

7 Disadvantages Introduction R and other sofwares Graphical user interface not as good as in other softwares. Lack of commercial support (partially true). CIMMYT, México-SAGPDB Short Introduction to R 7/51

8 Introduction R and other sofwares Installation in a Windows environment Go to and download the windows binary, Figure 1: R web site. CIMMYT, México-SAGPDB Short Introduction to R 8/51

9 Continue... Introduction R and other sofwares Go to the Downloads section and select CRAN, Figure 2: CRAN mirrors CIMMYT, México-SAGPDB Short Introduction to R 9/51

10 Continue... Introduction R and other sofwares Select the software for you OS, Figure 3: Executables for various platforms. CIMMYT, México-SAGPDB Short Introduction to R 10/51

11 Continue... Introduction R and other sofwares Download the base software, Figure 4: Download R-base. CIMMYT, México-SAGPDB Short Introduction to R 11/51

12 Continue... Introduction R and other sofwares Double click in the installer, Figure 5: Installing R. CIMMYT, México-SAGPDB Short Introduction to R 12/51

13 Contents Introduction Manuals and help 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 13/51

14 Manuals Introduction Manuals and help Once that you install R, you will have access to the following manuals in PDF format: An Introduction to R R Reference Manual R Data Import/Export R Language Definition Writing R Extensions R Internals R Installation and Administration CIMMYT, México-SAGPDB Short Introduction to R 14/51

15 Continue... Introduction Manuals and help Furthermore: Contributed Docs ( R-help mailing list archives ( Mailing list. Reference card. Summary of most useful R commands ( S Programming, W. Venables and B. Ripley. See CIMMYT, México-SAGPDB Short Introduction to R 15/51

16 Contents Introduction Sample R session 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 16/51

17 Sample R session Introduction Sample R session Go to a Start->Programs->R->R-3.x.y, the working environment is as that shown in the next Figure. Figure 6: R ready to process commands. CIMMYT, México-SAGPDB Short Introduction to R 17/51

18 Introduction Sample R session The symbol > is the command prompt. We can write command there, for example to show some help about matrices,?matrix then Enter The help system can be accessed through the command line using the following functions:?text help.start() help.search("text to search") apropos("search for some thing similar to...") CIMMYT, México-SAGPDB Short Introduction to R 18/51

19 Code editors Introduction Sample R session A set of R commands is usually known as script". There are several text editors. The one included by default in Windows installations is not as fancy as others that have syntax highlighting, for example Tinn-R, or R-studio. The standard text editor in R can be accessed from the File menu, File->New Script Figure 7: Code editor in R CIMMYT, México-SAGPDB Short Introduction to R 19/51

20 Introduction Example (performing basic calculations): 7+4 2*3*(1+2) Sample R session The commands are written in the text editor, then the commands are selected and the pop-up menu is activated, one of the entries in the menu has an option to execute the code. The result will appear in the R console. Figure 8: Executing R commands from the text editor. CIMMYT, México-SAGPDB Short Introduction to R 20/51

21 Introduction Sample R session Commands written in the text editor can be saved and restored for editing later. There exists a lot of text editors for writing R scripts, for example: WinEdit (shareware) SciViews (freeware) Tinn-R (freeware) Emacs (free) Rstudio (free) CIMMYT, México-SAGPDB Short Introduction to R 21/51

22 Continue... Introduction Sample R session Figure 9: Rstudio. CIMMYT, México-SAGPDB Short Introduction to R 22/51

23 Simple objects R works manipulating objects. The objects are manipulated using functions and operators. The most basic objects are: vectors (type numeric or character) Matrix data.frame Lists Functions Some useful functions... General pourpouse: sqrt(),log(),exp(),sin(),cos(), etc. Related to statistics: mean(), sd(), var(), quantile(), etc. The assignment operator is = with R>=1.4.0 or <- in any R version. CIMMYT, México-SAGPDB Short Introduction to R 23/51

24 Simple objects Notes: R distinguish between upper and lowercase letters The symbol "#" is used to comment the code Object s names can contain any combination of characters, except spaces and special symbols, for example "$","%","#", etc. Missing data can be represented with the special symbol "NA" (Not Available), and errors in computations for example dividing by 0 with the special symbol "NaN" (Not a Number) or "Inf" CIMMYT, México-SAGPDB Short Introduction to R 24/51

25 Contents Simple objects Vectors 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 25/51

26 Vectors Simple objects Vectors Vectors are created using the functions c(),seq(),:, rep(). Examples: a=c(1,2,3,4,5) a b=c("a","b","c") b d=1:10 d e=seq(1,10,by=0.5) e f=seq(1,10,length.out=20) f g=rep(10,3) g h=c(e,f) h CIMMYT, México-SAGPDB Short Introduction to R 26/51

27 Vector operations Simple objects Vectors We can perform most common operations using vectors with the same length. Operations are performed element wise. Examples: a=c(1,2,3) b=c(2,3,5) a+b a-b a*b a^b 3*a+2*b a/b a^2 #sum a and b #a-b #element wise product #power function #product and sum #element wise quotient #takes the square of each element It is also possible to apply a function to a vector, for example: exp(a) log(a) d=sqrt(a)+log(b) d #Exponential function #logarithm function #square root and logarithm #shows d CIMMYT, México-SAGPDB Short Introduction to R 27/51

28 Simple objects Vectors To extract some elements from the vectors we can use the [] operator, for example: a=c(1,2,5,7,9) b=a[1:3] #first 3 elements in a, assign the result to b b #shows b c=a[-1] #take all elements in b except the first one #and crete a new object a[c(1,5)] #first and last component in a There exists a lot of operations that can be performed using vectors, for example: w=c(1,2,3,na,-1,2) which(is.na(w)) #Missing values which.max(w) #Position of the maximum which.min(w) #Position of the minumum w>2 #numbers that are bigger than 2? which(w>2) #which numbers are bigger than 2? sort(w) #sort in ascending order sort(w,decreasing=t) #sorts in decreasing order CIMMYT, México-SAGPDB Short Introduction to R 28/51

29 Contents Simple objects Matrices 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 29/51

30 Creating matrices Simple objects Matrices Matrices can contain numbers or characters. The creation of matrices is shown in the examples below. #a)identity matrix, nxn #Identity matrix of order Identity=diag(c(1,1,1,1)) Identity 4x4 #Alternatively... Identity=diag(rep(1,4)) Identity #b)j matrix #J matrix, order 3x3 J=matrix(1,nrow=3,ncol=3) J #c)in general #matrix(data = NA, nrow = 1, ncol = 1,byrow = FALSE, dimnames = NULL) A=matrix(nrow=3,ncol=3) A[1,]=c(1,2,3) A[2,]=c(4,5,6) A[3,]=c(7,8,9) CIMMYT, México-SAGPDB Short Introduction to R 30/51

31 Simple objects Matrices #Alternatively... A=matrix(c(1:9),nrow=3,ncol=3,byrow=TRUE) A #Alternatively... A=matrix(c(1,4,7,2,5,8,3,4,8),nrow=3,ncol=3,byrow=FALSE) A CIMMYT, México-SAGPDB Short Introduction to R 31/51

32 Matrix operations Simple objects Matrices #Sum and substraction C=A+J C D=A-J D #Matrix product (%*%) Dsq=D%*%D Dsq DsqA=D%*%D%*%(A) DsqA #Transpose, use t(d) #Determinant, det(d) t() det() #Inverse, use the function InvI=solve(Identidad) InvI solve() CIMMYT, México-SAGPDB Short Introduction to R 32/51

33 Simple objects Matrices #Rangk, use the QR decomposition qr(identidad) qr(identidad)$rank Noninvertible=matrix(c(1,2,3,1,2,1,2,4,6),nrow=3,ncol=3,byrow=TRUE) det(noninvertible) qr(noninvertible)$rank CIMMYT, México-SAGPDB Short Introduction to R 33/51

34 Simple objects Matrices We can also extract some elements of the matrix, for example: A A[1,1] A[1,] A[c(1,2),] A[-3,] A[,1] A[,c(1,3)] A[,-3] #Shows A #Element in row 1, column 1 in A #First row of A #First and second row of A #All rows except the third one #First column of A #Columns one and third in A #All columns except third one Note: When we extract a row or column it is automatically converted to a vector. CIMMYT, México-SAGPDB Short Introduction to R 34/51

35 Contents Simple objects data.frame 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 35/51

36 data.frame Simple objects data.frame Tables are created using the function data.frame(v1,...,vn), where v1 is the vector 1 and vn is the vector n. The rows usually represents individuals and the columns covariates. Examples ID=c("genO","genB","genZ") subj1=c(10,25,33) subj2=c(na,34,15) oncogen=c(true,true,false) loc=c(1,30,125) data1=data.frame(id,subj1,subj2,oncogen,loc) data1 #If you want to display the column names in a #data.frame, use the function names names(data1) #To show or extract a column use the operator $ data1$subj2 data1$subj2 data1$oncogen CIMMYT, México-SAGPDB Short Introduction to R 36/51

37 User defined functions User defined functions R implements a lot of statistical methodologies using functions. The functions are organized in libraries. The base library contains all the functions that we have been using so far. The libraries can be downloaded freely from the internet. We can create our own functions for data analysis. The syntax for creating a new function is as follows: funcion_name=function(arg1,...,argn) { function body; return the value; } Examples: CIMMYT, México-SAGPDB Short Introduction to R 37/51

38 User defined functions A function to compute f (x) = x 2 f=function(x) { x^2 } f(2) f(c(1,2,3)) A function to compute n i=1 i my_sum=function(n) { tmp=c(1:n) sum(tmp) } #The result should be identical to n=100 my_sum(n) n*(n+1)/2 n(n+1)/2 CIMMYT, México-SAGPDB Short Introduction to R 38/51

39 Graphs R includes many functions to produce high quality graphics ready for publication. We can explore the graphical capabilities of the software included in the demos. Type demo() in the command prompt and the software will display a list of demos that we can execute, for example: graphics image persp plotmath demo() demo(graphics) demo(image) demo(persp) demo(plotmath) #Some graphical capabilities #Working with images #Mathematical symbols in graphs CIMMYT, México-SAGPDB Short Introduction to R 39/51

40 Contents Graphs Plotting user defined functions 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 40/51

41 Graphs Plotting user defined functions Plotting user defined functions To plot user defined functions we can use the functions curve(), or plot(). We will give more details about the later in the next slides. Examples #1: Plotting f(x)=x^2, -4<=x<=4 curve(x^2,-4,4) #2: Plotting f(x)=-x^3, -4<=x<=4 curve(-x^2,-4,4) #3: op=par(mfrow=c(2,2)) curve(x^3-3*x, -2, 2) curve(x^2-2, add = TRUE, col = "violet") plot(cos, xlim =c(-pi,3*pi), n = 1001, col = "blue") chippy=function(x) sin(cos(x)*exp(-x/2)) curve(chippy, -8, 7, n=2001) curve(chippy,-8, -5) #4: Standard normal curve(1/sqrt(2*pi)*exp(-1/2*x^2),-3,3) CIMMYT, México-SAGPDB Short Introduction to R 41/51

42 Contents Graphs Plot function 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 42/51

43 Plot function Graphs Plot function One of the most useful function for plotting is the plot function. With this function we can plot points (scatterplot), lines (time series), or functions. Examples y<-c(1,2,3,4,5) x<-c(1,4,9,16,25) plot(x,y,main="",ylab="", xlab="") plot(x,y,type="l") plot(dnorm, -3,3,col = "blue") CIMMYT, México-SAGPDB Short Introduction to R 43/51

44 Contents Graphs More functions for graphs 1 Introduction R? R and other sofwares Manuals and help Sample R session 2 Simple objects Vectors Matrices data.frame 3 User defined functions 4 Graphs Plotting user defined functions Plot function More functions for graphs 5 Importing data 6 Installing packages 7 Questions CIMMYT, México-SAGPDB Short Introduction to R 44/51

45 Graphs More functions for graphs More functions for graphs barplot pie histogram boxplot CIMMYT, México-SAGPDB Short Introduction to R 45/51

46 Importing data Importing data There are several routines to import data into the R environment. For ASCII files we can use: 1 read.table 2 read.csv The function setwd is useful for setting the working directory so that we do not have to write the entire PATH of a file each time that we want to read it. R can save and load objects in a native binary format. The functions load and save can be used to that end. CIMMYT, México-SAGPDB Short Introduction to R 46/51

47 Examples Importing data This data set is from CIMMYT global Wheat breeding program and comprises phenotypic, genotypic and pedigree information of n = 599 wheat lines. The data set was made publicly available by Crossa et al. (2010). Lines were evaluated for grain yield at four different environments. Each of the lines were genotyped for p = 1, 279 Diversity Array Technology (DArT) markers. At each marker two homocygous genotypes were possible and these were coded as 0/1. Marker genotypes are given in the object X. Finally a matrix A provides the pedigree-relationships between lines computed from the pedigree. CIMMYT, México-SAGPDB Short Introduction to R 47/51

48 Continue... Importing data rm(list=ls()) library(doby) setwd("~/0. R-Intro/examples") #Load genotypic data load("pedigree_markers.rdata") #Load phenotypic data pheno=read.table(file="599_yield_raw-1.prn",header=true) colnames(pheno) pheno=pheno[,c(2,5,6)] out=summaryby(gy~env+gen1,data=pheno,fun=mean) Y=data.frame(yield=out$GY.mean,VAR=out$gen1,ENV=out$env) CIMMYT, México-SAGPDB Short Introduction to R 48/51

49 Installing packages Installing packages Many users all over the world are creating software packages for R, Figure 10: Packages. CIMMYT, México-SAGPDB Short Introduction to R 49/51

50 Continue... Installing packages A package is just a collection of routines used to perform some calculations. Usually these routines are made available to the user through functions well documented. The function install.packages() is used to install software from the CRAN website, for example: install.packages("blr") install.packages("bglr") install.packagses("doby") Once that a package is installed, it should be loaded with the function library, library(doby) library(bglr) CIMMYT, México-SAGPDB Short Introduction to R 50/51

51 Questions? Questions CIMMYT, México-SAGPDB Short Introduction to R 51/51

Mails : ; Document version: 14/09/12

Mails : ; Document version: 14/09/12 Mails : leslie.regad@univ-paris-diderot.fr ; gaelle.lelandais@univ-paris-diderot.fr Document version: 14/09/12 A freely available language and environment Statistical computing Graphics Supplementary

More information

This document is designed to get you started with using R

This document is designed to get you started with using R An Introduction to R This document is designed to get you started with using R We will learn about what R is and its advantages over other statistics packages the basics of R plotting data and graphs What

More information

An Introduction to R- Programming

An Introduction to R- Programming An Introduction to R- Programming Hadeel Alkofide, Msc, PhD NOT a biostatistician or R expert just simply an R user Some slides were adapted from lectures by Angie Mae Rodday MSc, PhD at Tufts University

More information

Instruction: Download and Install R and RStudio

Instruction: Download and Install R and RStudio 1 Instruction: Download and Install R and RStudio We will use a free statistical package R, and a free version of RStudio. Please refer to the following two steps to download both R and RStudio on your

More information

Getting Started. Slides R-Intro: R-Analytics: R-HPC:

Getting Started. Slides R-Intro:   R-Analytics:   R-HPC: Getting Started Download and install R + Rstudio http://www.r-project.org/ https://www.rstudio.com/products/rstudio/download2/ TACC ssh username@wrangler.tacc.utexas.edu % module load Rstats %R Slides

More information

Introduction to R. UCLA Statistical Consulting Center R Bootcamp. Irina Kukuyeva September 20, 2010

Introduction to R. UCLA Statistical Consulting Center R Bootcamp. Irina Kukuyeva September 20, 2010 UCLA Statistical Consulting Center R Bootcamp Irina Kukuyeva ikukuyeva@stat.ucla.edu September 20, 2010 Outline 1 Introduction 2 Preliminaries 3 Working with Vectors and Matrices 4 Data Sets in R 5 Overview

More information

MBV4410/9410 Fall Bioinformatics for Molecular Biology. Introduction to R

MBV4410/9410 Fall Bioinformatics for Molecular Biology. Introduction to R MBV4410/9410 Fall 2018 Bioinformatics for Molecular Biology Introduction to R Outline Introduce R Basic operations RStudio Bioconductor? Goal of the lecture Introduce you to R Show how to run R, basic

More information

R (and S, and S-Plus, another program based on S) is an interactive, interpretive, function language.

R (and S, and S-Plus, another program based on S) is an interactive, interpretive, function language. R R (and S, and S-Plus, another program based on S) is an interactive, interpretive, function language. Available on Linux, Unix, Mac, and MS Windows systems. Documentation exists in several volumes, and

More information

R basics workshop Sohee Kang

R basics workshop Sohee Kang R basics workshop Sohee Kang Math and Stats Learning Centre Department of Computer and Mathematical Sciences Objective To teach the basic knowledge necessary to use R independently, thus helping participants

More information

Introduction to R and R-Studio Toy Program #1 R Essentials. This illustration Assumes that You Have Installed R and R-Studio

Introduction to R and R-Studio Toy Program #1 R Essentials. This illustration Assumes that You Have Installed R and R-Studio Introduction to R and R-Studio 2018-19 Toy Program #1 R Essentials This illustration Assumes that You Have Installed R and R-Studio If you have not already installed R and RStudio, please see: Windows

More information

Introduction to R: Part I

Introduction to R: Part I Introduction to R: Part I Jeffrey C. Miecznikowski March 26, 2015 R impact R is the 13th most popular language by IEEE Spectrum (2014) Google uses R for ROI calculations Ford uses R to improve vehicle

More information

Intro to R. Some history. Some history

Intro to R. Some history. Some history Intro to R Héctor Corrada Bravo CMSC858B Spring 2012 University of Maryland Computer Science http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?_r=2&pagewanted=1 http://www.forbes.com/forbes/2010/0524/opinions-software-norman-nie-spss-ideas-opinions.html

More information

R is a programming language of a higher-level Constantly increasing amount of packages (new research) Free of charge Website:

R is a programming language of a higher-level Constantly increasing amount of packages (new research) Free of charge Website: Introduction to R R R is a programming language of a higher-level Constantly increasing amount of packages (new research) Free of charge Website: http://www.r-project.org/ Code Editor: http://rstudio.org/

More information

Computational statistics Jamie Griffin. Semester B 2018 Lecture 1

Computational statistics Jamie Griffin. Semester B 2018 Lecture 1 Computational statistics Jamie Griffin Semester B 2018 Lecture 1 Course overview This course is not: Statistical computing Programming This course is: Computational statistics Statistical methods that

More information

Lecture 1: Getting Started and Data Basics

Lecture 1: Getting Started and Data Basics Lecture 1: Getting Started and Data Basics The first lecture is intended to provide you the basics for running R. Outline: 1. An Introductory R Session 2. R as a Calculator 3. Import, export and manipulate

More information

R package

R package R package www.r-project.org Download choose the R version for your OS install R for the first time Download R 3 run R MAGDA MIELCZAREK 2 help help( nameofthefunction )? nameofthefunction args(nameofthefunction)

More information

EPIB Four Lecture Overview of R

EPIB Four Lecture Overview of R EPIB-613 - Four Lecture Overview of R R is a package with enormous capacity for complex statistical analysis. We will see only a small proportion of what it can do. The R component of EPIB-613 is divided

More information

Goals of this course. Crash Course in R. Getting Started with R. What is R? What is R? Getting you setup to use R under Windows

Goals of this course. Crash Course in R. Getting Started with R. What is R? What is R? Getting you setup to use R under Windows Oxford Spring School, April 2013 Effective Presentation ti Monday morning lecture: Crash Course in R Robert Andersen Department of Sociology University of Toronto And Dave Armstrong Department of Political

More information

A brief introduction to R

A brief introduction to R A brief introduction to R Cavan Reilly September 29, 2017 Table of contents Background R objects Operations on objects Factors Input and Output Figures Missing Data Random Numbers Control structures Background

More information

II.Matrix. Creates matrix, takes a vector argument and turns it into a matrix matrix(data, nrow, ncol, byrow = F)

II.Matrix. Creates matrix, takes a vector argument and turns it into a matrix matrix(data, nrow, ncol, byrow = F) II.Matrix A matrix is a two dimensional array, it consists of elements of the same type and displayed in rectangular form. The first index denotes the row; the second index denotes the column of the specified

More information

Description/History Objects/Language Description Commonly Used Basic Functions. More Specific Functionality Further Resources

Description/History Objects/Language Description Commonly Used Basic Functions. More Specific Functionality Further Resources R Outline Description/History Objects/Language Description Commonly Used Basic Functions Basic Stats and distributions I/O Plotting Programming More Specific Functionality Further Resources www.r-project.org

More information

Matrix algebra. Basics

Matrix algebra. Basics Matrix.1 Matrix algebra Matrix algebra is very prevalently used in Statistics because it provides representations of models and computations in a much simpler manner than without its use. The purpose of

More information

Tutorial (Unix Version)

Tutorial (Unix Version) Tutorial (Unix Version) S.f.Statistik, ETHZ February 26, 2010 Introduction This tutorial will give you some basic knowledge about working with R. It will also help you to familiarize with an environment

More information

Introduction to Statistics using R/Rstudio

Introduction to Statistics using R/Rstudio Introduction to Statistics using R/Rstudio R and Rstudio Getting Started Assume that R for Windows and Macs already installed on your laptop. (Instructions for installations sent) R on Windows R on MACs

More information

Statistical Software Camp: Introduction to R

Statistical Software Camp: Introduction to R Statistical Software Camp: Introduction to R Day 1 August 24, 2009 1 Introduction 1.1 Why Use R? ˆ Widely-used (ever-increasingly so in political science) ˆ Free ˆ Power and flexibility ˆ Graphical capabilities

More information

Statistics for Biologists: Practicals

Statistics for Biologists: Practicals Statistics for Biologists: Practicals Peter Stoll University of Basel HS 2012 Peter Stoll (University of Basel) Statistics for Biologists: Practicals HS 2012 1 / 22 Outline Getting started Essentials of

More information

BGGN 213 Working with R packages Barry Grant

BGGN 213 Working with R packages Barry Grant BGGN 213 Working with R packages Barry Grant http://thegrantlab.org/bggn213 Recap From Last Time: Why it is important to visualize data during exploratory data analysis. Discussed data visualization best

More information

GS Analysis of Microarray Data

GS Analysis of Microarray Data GS01 0163 Analysis of Microarray Data Keith Baggerly and Kevin Coombes Section of Bioinformatics Department of Biostatistics and Applied Mathematics UT M. D. Anderson Cancer Center kabagg@mdanderson.org

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT

LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT NAVAL POSTGRADUATE SCHOOL LAB #2: SAMPLING, SAMPLING DISTRIBUTIONS, AND THE CLT Statistics (OA3102) Lab #2: Sampling, Sampling Distributions, and the Central Limit Theorem Goal: Use R to demonstrate sampling

More information

Getting Started with R

Getting Started with R Getting Started with R STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat/stat133 Course web: gastonsanchez.com/stat133 Tool Some of you may have used

More information

Introduction to RStudio

Introduction to RStudio Introduction to RStudio Ulrich Halekoh Epidemiology and Biostatistics, SDU May 4, 2018 R R is a language that started by Ross Ihaka and Robert Gentleman in 1991 as an open source alternative to S emphasizes

More information

R Short Course Session 1

R Short Course Session 1 R Short Course Session 1 Daniel Zhao, PhD Sixia Chen, PhD Department of Biostatistics and Epidemiology College of Public Health, OUHSC 10/23/2015 Outline Overview of the 5 sessions Pre-requisite requirements

More information

Regression III: Advanced Methods

Regression III: Advanced Methods Lecture 2: Software Introduction Regression III: Advanced Methods William G. Jacoby Department of Political Science Michigan State University jacoby@msu.edu Getting Started with R What is R? A tiny R session

More information

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012 An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences Scott C Merrill September 5 th, 2012 Chapter 2 Additional help tools Last week you asked about getting help on packages.

More information

Introduction to R Benedikt Brors Dept. Intelligent Bioinformatics Systems German Cancer Research Center

Introduction to R Benedikt Brors Dept. Intelligent Bioinformatics Systems German Cancer Research Center Introduction to R Benedikt Brors Dept. Intelligent Bioinformatics Systems German Cancer Research Center What is R? R is a statistical computing environment with graphics capabilites It is fully scriptable

More information

The History and Use of R. Joseph Kambourakis

The History and Use of R. Joseph Kambourakis The History and Use of R Joseph Kambourakis Ground Rules Interrupt me These are all my opinions and not of EMC or Big Data Analytics, Discovery & Visualization Meetup Slides will be available Joseph

More information

STAT 571A Advanced Statistical Regression Analysis. Introduction to R NOTES

STAT 571A Advanced Statistical Regression Analysis. Introduction to R NOTES STAT 571A Advanced Statistical Regression Analysis Introduction to R NOTES 2015 University of Arizona Statistics GIDP. All rights reserved, except where previous rights exist. No part of this material

More information

Introduction to R. Daniel Berglund. 9 November 2017

Introduction to R. Daniel Berglund. 9 November 2017 Introduction to R Daniel Berglund 9 November 2017 1 / 15 R R is available at the KTH computers If you want to install it yourself it is available at https://cran.r-project.org/ Rstudio an IDE for R is

More information

Introduction to R. Nishant Gopalakrishnan, Martin Morgan January, Fred Hutchinson Cancer Research Center

Introduction to R. Nishant Gopalakrishnan, Martin Morgan January, Fred Hutchinson Cancer Research Center Introduction to R Nishant Gopalakrishnan, Martin Morgan Fred Hutchinson Cancer Research Center 19-21 January, 2011 Getting Started Atomic Data structures Creating vectors Subsetting vectors Factors Matrices

More information

Introduction to R. Introduction to Econometrics W

Introduction to R. Introduction to Econometrics W Introduction to R Introduction to Econometrics W3412 Begin Download R from the Comprehensive R Archive Network (CRAN) by choosing a location close to you. Students are also recommended to download RStudio,

More information

Introduction to R. base -> R win32.exe (this will change depending on the latest version)

Introduction to R. base -> R win32.exe (this will change depending on the latest version) Dr Raffaella Calabrese, Essex Business School 1. GETTING STARTED Introduction to R R is a powerful environment for statistical computing which runs on several platforms. R is available free of charge.

More information

Introduction to R: Using R for statistics and data analysis

Introduction to R: Using R for statistics and data analysis Why use R? Introduction to R: Using R for statistics and data analysis George W Bell, Ph.D. BaRC Hot Topics November 2014 Bioinformatics and Research Computing Whitehead Institute http://barc.wi.mit.edu/hot_topics/

More information

Introduction into R. A Short Overview. Thomas Girke. December 8, Introduction into R Slide 1/21

Introduction into R. A Short Overview. Thomas Girke. December 8, Introduction into R Slide 1/21 Introduction into R A Short Overview Thomas Girke December 8, 212 Introduction into R Slide 1/21 Introduction Look and Feel of the R Environment R Library Depositories Installation Getting Around Basic

More information

Basic R Part 1. Boyce Thompson Institute for Plant Research Tower Road Ithaca, New York U.S.A. by Aureliano Bombarely Gomez

Basic R Part 1. Boyce Thompson Institute for Plant Research Tower Road Ithaca, New York U.S.A. by Aureliano Bombarely Gomez Basic R Part 1 Boyce Thompson Institute for Plant Research Tower Road Ithaca, New York 14853-1801 U.S.A. by Aureliano Bombarely Gomez A Brief Introduction to R: 1. What is R? 2. Software and documentation.

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

Why use R? Getting started. Why not use R? Introduction to R: It s hard to use at first. To perform inferential statistics (e.g., use a statistical

Why use R? Getting started. Why not use R? Introduction to R: It s hard to use at first. To perform inferential statistics (e.g., use a statistical Why use R? Introduction to R: Using R for statistics ti ti and data analysis BaRC Hot Topics November 2013 George W. Bell, Ph.D. http://jura.wi.mit.edu/bio/education/hot_topics/ To perform inferential

More information

Bioinformatics Workshop - NM-AIST

Bioinformatics Workshop - NM-AIST Bioinformatics Workshop - NM-AIST Day 2 Introduction to R Thomas Girke July 24, 212 Bioinformatics Workshop - NM-AIST Slide 1/21 Introduction Look and Feel of the R Environment R Library Depositories Installation

More information

Stat 302 Statistical Software and Its Applications Introduction to R

Stat 302 Statistical Software and Its Applications Introduction to R Stat 302 Statistical Software and Its Applications Introduction to R Yen-Chi Chen Department of Statistics, University of Washington Autumn 2016 1 / 23 Statistical Software There are many, many statistical

More information

Chapter 1 Introduction to MATLAB

Chapter 1 Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 What is MATLAB? MATLAB = MATrix LABoratory, the language of technical computing, modeling and simulation, data analysis and processing, visualization and graphics,

More information

Topics for today Input / Output Using data frames Mathematics with vectors and matrices Summary statistics Basic graphics

Topics for today Input / Output Using data frames Mathematics with vectors and matrices Summary statistics Basic graphics Topics for today Input / Output Using data frames Mathematics with vectors and matrices Summary statistics Basic graphics Introduction to S-Plus 1 Input: Data files For rectangular data files (n rows,

More information

Introduction to R. Biostatistics 615/815 Lecture 23

Introduction to R. Biostatistics 615/815 Lecture 23 Introduction to R Biostatistics 615/815 Lecture 23 So far We have been working with C Strongly typed language Variable and function types set explicitly Functional language Programs are a collection of

More information

STAT 540: R: Sections Arithmetic in R. Will perform these on vectors, matrices, arrays as well as on ordinary numbers

STAT 540: R: Sections Arithmetic in R. Will perform these on vectors, matrices, arrays as well as on ordinary numbers Arithmetic in R R can be viewed as a very fancy calculator Can perform the ordinary mathematical operations: + - * / ˆ Will perform these on vectors, matrices, arrays as well as on ordinary numbers With

More information

Module 1: Introduction RStudio

Module 1: Introduction RStudio Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator

More information

A Brief Introduction to R

A Brief Introduction to R A Brief Introduction to R Babak Shahbaba Department of Statistics, University of California, Irvine, USA Chapter 1 Introduction to R 1.1 Installing R To install R, follow these steps: 1. Go to http://www.r-project.org/.

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Introduction to R (BaRC Hot Topics)

Introduction to R (BaRC Hot Topics) Introduction to R (BaRC Hot Topics) George Bell September 30, 2011 This document accompanies the slides from BaRC s Introduction to R and shows the use of some simple commands. See the accompanying slides

More information

Basic R Part 1 BTI Plant Bioinformatics Course

Basic R Part 1 BTI Plant Bioinformatics Course Basic R Part 1 BTI Plant Bioinformatics Course Spring 2013 Sol Genomics Network Boyce Thompson Institute for Plant Research by Jeremy D. Edwards What is R? Statistical programming language Derived from

More information

BIO5312: R Session 1 An Introduction to R and Descriptive Statistics

BIO5312: R Session 1 An Introduction to R and Descriptive Statistics BIO5312: R Session 1 An Introduction to R and Descriptive Statistics Yujin Chung August 30th, 2016 Fall, 2016 Yujin Chung R Session 1 Fall, 2016 1/24 Introduction to R R software R is both open source

More information

Getting Started with MATLAB

Getting Started with MATLAB APPENDIX B Getting Started with MATLAB MATLAB software is a computer program that provides the user with a convenient environment for many types of calculations in particular, those that are related to

More information

Functions and data structures. Programming in R for Data Science Anders Stockmarr, Kasper Kristensen, Anders Nielsen

Functions and data structures. Programming in R for Data Science Anders Stockmarr, Kasper Kristensen, Anders Nielsen Functions and data structures Programming in R for Data Science Anders Stockmarr, Kasper Kristensen, Anders Nielsen Objects of the game In R we have objects which are functions and objects which are data.

More information

Why use R? Getting started. Why not use R? Introduction to R: Log into tak. Start R R or. It s hard to use at first

Why use R? Getting started. Why not use R? Introduction to R: Log into tak. Start R R or. It s hard to use at first Why use R? Introduction to R: Using R for statistics ti ti and data analysis BaRC Hot Topics October 2011 George Bell, Ph.D. http://iona.wi.mit.edu/bio/education/r2011/ To perform inferential statistics

More information

Class 2: Statistical computing using R (programming)

Class 2: Statistical computing using R (programming) Class 2: Statistical computing using R (programming) You must read this chapter while sitting at the computer with an R window open. You will learn by typing in code from this chapter. You can learn further

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Andreas C. Kapourani (Credit: Steve Renals & Iain Murray) 9 January 08 Introduction MATLAB is a programming language that grew out of the need to process matrices. It is used extensively

More information

Matlab and Octave: Quick Introduction and Examples 1 Basics

Matlab and Octave: Quick Introduction and Examples 1 Basics Matlab and Octave: Quick Introduction and Examples 1 Basics 1.1 Syntax and m-files There is a shell where commands can be written in. All commands must either be built-in commands, functions, names of

More information

Introduction to R 21/11/2016

Introduction to R 21/11/2016 Introduction to R 21/11/2016 C3BI Vincent Guillemot & Anne Biton R: presentation and installation Where? https://cran.r-project.org/ How to install and use it? Follow the steps: you don t need advanced

More information

Stochastic Models. Introduction to R. Walt Pohl. February 28, Department of Business Administration

Stochastic Models. Introduction to R. Walt Pohl. February 28, Department of Business Administration Stochastic Models Introduction to R Walt Pohl Universität Zürich Department of Business Administration February 28, 2013 What is R? R is a freely-available general-purpose statistical package, developed

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Using R for statistics and data analysis

Using R for statistics and data analysis Introduction ti to R: Using R for statistics and data analysis BaRC Hot Topics October 2011 George Bell, Ph.D. http://iona.wi.mit.edu/bio/education/r2011/ Why use R? To perform inferential statistics (e.g.,

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

University of Wollongong School of Mathematics and Applied Statistics. STAT231 Probability and Random Variables Introductory Laboratory

University of Wollongong School of Mathematics and Applied Statistics. STAT231 Probability and Random Variables Introductory Laboratory 1 R and RStudio University of Wollongong School of Mathematics and Applied Statistics STAT231 Probability and Random Variables 2014 Introductory Laboratory RStudio is a powerful statistical analysis package.

More information

Introduction to R: Using R for statistics and data analysis

Introduction to R: Using R for statistics and data analysis Why use R? Introduction to R: Using R for statistics and data analysis George W Bell, Ph.D. BaRC Hot Topics November 2015 Bioinformatics and Research Computing Whitehead Institute http://barc.wi.mit.edu/hot_topics/

More information

Basics of R. > x=2 (or x<-2) > y=x+3 (or y<-x+3)

Basics of R. > x=2 (or x<-2) > y=x+3 (or y<-x+3) Basics of R 1. Arithmetic Operators > 2+2 > sqrt(2) # (2) >2^2 > sin(pi) # sin(π) >(1-2)*3 > exp(1) # e 1 >1-2*3 > log(10) # This is a short form of the full command, log(10, base=e). (Note) For log 10

More information

An introduction to R WS 2013/2014

An introduction to R WS 2013/2014 An introduction to R WS 2013/2014 Dr. Noémie Becker (AG Metzler) Dr. Sonja Grath (AG Parsch) Special thanks to: Dr. Martin Hutzenthaler (previously AG Metzler, now University of Frankfurt) course development,

More information

History, installation and connection

History, installation and connection History, installation and connection The men behind our software Jim Goodnight, CEO SAS Inc Ross Ihaka Robert Gentleman (Duncan Temple Lang) originators of R 2 / 75 History SAS From late 1960s, North Carolina

More information

LECTURE NOTES FOR ECO231 COMPUTER APPLICATIONS I. Part Two. Introduction to R Programming. RStudio. November Written by. N.

LECTURE NOTES FOR ECO231 COMPUTER APPLICATIONS I. Part Two. Introduction to R Programming. RStudio. November Written by. N. LECTURE NOTES FOR ECO231 COMPUTER APPLICATIONS I Part Two Introduction to R Programming RStudio November 2016 Written by N.Nilgün Çokça Introduction to R Programming 5 Installing R & RStudio 5 The R Studio

More information

Statistics 251: Statistical Methods

Statistics 251: Statistical Methods Statistics 251: Statistical Methods Summaries and Graphs in R Module R1 2018 file:///u:/documents/classes/lectures/251301/renae/markdown/master%20versions/summary_graphs.html#1 1/14 Summary Statistics

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Introduction to R. Course in Practical Analysis of Microarray Data Computational Exercises

Introduction to R. Course in Practical Analysis of Microarray Data Computational Exercises Introduction to R Course in Practical Analysis of Microarray Data Computational Exercises 2010 March 22-26, Technischen Universität München Amin Moghaddasi, Kurt Fellenberg 1. Installing R. Check whether

More information

A (very) short introduction to R

A (very) short introduction to R A (very) short introduction to R Paul Torfs & Claudia Brauer Hydrology and Quantitative Water Management Group, Wageningen University, The Netherlands 4 August 2017 1 Introduction R is a powerful language

More information

A system for statistical analysis. Instructions for installing software. R, R-studio and the R-commander

A system for statistical analysis. Instructions for installing software. R, R-studio and the R-commander Instructions for installing software R, R-studio and the R-commander Graeme.Hutcheson@manchester.ac.uk Manchester Institute of Education, University of Manchester This course uses the following software...

More information

A 30 Minute Introduction to Octave ENGR Engineering Mathematics Tony Richardson

A 30 Minute Introduction to Octave ENGR Engineering Mathematics Tony Richardson A 30 Minute Introduction to Octave ENGR 390 - Engineering Mathematics Tony Richardson Introduction This is a brief introduction to Octave. It covers several topics related to both the statistics and linear

More information

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Finite Math - J-term Homework. Section Inverse of a Square Matrix Section.5-77, 78, 79, 80 Finite Math - J-term 017 Lecture Notes - 1/19/017 Homework Section.6-9, 1, 1, 15, 17, 18, 1, 6, 9, 3, 37, 39, 1,, 5, 6, 55 Section 5.1-9, 11, 1, 13, 1, 17, 9, 30 Section.5 - Inverse

More information

A VERY BRIEF INTRODUCTION TO R

A VERY BRIEF INTRODUCTION TO R CS 432/532 INTRODUCTION TO WEB SCIENCE A VERY BRIEF INTRODUCTION TO R SCOTT G. AINSWORTH OLD DOMINION UNIVERSITY WHO AM I? Scott G. Ainsworth Former sailor Worked for several consulting firms Computer

More information

A (very) short introduction to R

A (very) short introduction to R A (very) short introduction to R Paul Torfs & Claudia Brauer Hydrology and Quantitative Water Management Group Wageningen University, The Netherlands 1 Introduction 3 March 2014 R is a powerful language

More information

IST Computational Tools for Statistics I. DEÜ, Department of Statistics

IST Computational Tools for Statistics I. DEÜ, Department of Statistics IST 1051 Computational Tools for Statistics I 1 DEÜ, Department of Statistics Course Objectives Computational Tools for Statistics-I course can increase the understanding of statistics and helps to learn

More information

Introduction to R: Using R for Statistics and Data Analysis. BaRC Hot Topics

Introduction to R: Using R for Statistics and Data Analysis. BaRC Hot Topics Introduction to R: Using R for Statistics and Data Analysis BaRC Hot Topics http://barc.wi.mit.edu/hot_topics/ Why use R? Perform inferential statistics (e.g., use a statistical test to calculate a p-value)

More information

Introduction to MATLAB 7 for Engineers

Introduction to MATLAB 7 for Engineers PowerPoint to accompany Introduction to MATLAB 7 for Engineers William J. Palm III Chapter 2 Numeric, Cell, and Structure Arrays Copyright 2005. The McGraw-Hill Companies, Inc. Permission required for

More information

A (very) short introduction to R

A (very) short introduction to R A (very) short introduction to R Paul Torfs & Claudia Brauer Hydrology and Quantitative Water Management Group Wageningen University, The Netherlands 1 Introduction 16 April 2012 R is a powerful language

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB What you will learn The most important commands (from my view) Writing scripts (.m files) Defining MATLAB variables Matrix/array operations Importing and extracting data 2D plots

More information

Solving the Unsolvable Through Scientific Computing: Explorations in the Best Uses of Popular Mathematics Software

Solving the Unsolvable Through Scientific Computing: Explorations in the Best Uses of Popular Mathematics Software Solving the Unsolvable Through Scientific Computing: Explorations in the Best Uses of Popular Mathematics Software Talitha Washington, Howard University Edray Goins, Purdue University Luis Melara, Shippensburg

More information

A Quick Tutorial on MATLAB. Zeeshan Ali

A Quick Tutorial on MATLAB. Zeeshan Ali A Quick Tutorial on MATLAB Zeeshan Ali MATLAB MATLAB is a software package for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It's name

More information

A Guide for the Unwilling S User

A Guide for the Unwilling S User A Guide for the Unwilling S User Patrick Burns Original: 2003 February 23 Current: 2005 January 2 Introduction Two versions of the S language are available a free version called R, and a commercial version

More information

Matlab Tutorial: Basics

Matlab Tutorial: Basics Matlab Tutorial: Basics Topics: opening matlab m-files general syntax plotting function files loops GETTING HELP Matlab is a program which allows you to manipulate, analyze and visualize data. MATLAB allows

More information

GS Analysis of Microarray Data

GS Analysis of Microarray Data GS01 0163 Analysis of Microarray Data Keith Baggerly and Bradley Broom Department of Bioinformatics and Computational Biology UT M. D. Anderson Cancer Center kabagg@mdanderson.org bmbroom@mdanderson.org

More information

Stat 302 Statistical Software and Its Applications Introduction to R

Stat 302 Statistical Software and Its Applications Introduction to R Stat 302 Statistical Software and Its Applications Introduction to R Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 January 8, 2015 2 Statistical Software There are

More information

SISG/SISMID Module 3

SISG/SISMID Module 3 SISG/SISMID Module 3 Introduction to R Ken Rice Tim Thornton University of Washington Seattle, July 2018 Introduction: Course Aims This is a first course in R. We aim to cover; Reading in, summarizing

More information

1 Matrices and Vectors and Lists

1 Matrices and Vectors and Lists University of Wollongong School of Mathematics and Applied Statistics STAT231 Probability and Random Variables 2014 Second Lab - Week 4 If you can t finish the log-book questions in lab, proceed at home.

More information

An introduction to WS 2015/2016

An introduction to WS 2015/2016 An introduction to WS 2015/2016 Dr. Noémie Becker (AG Metzler) Dr. Sonja Grath (AG Parsch) Special thanks to: Prof. Dr. Martin Hutzenthaler (previously AG Metzler, now University of Duisburg-Essen) course

More information

Colorado State University Department of Mechanical Engineering. MECH Laboratory Exercise #1 Introduction to MATLAB

Colorado State University Department of Mechanical Engineering. MECH Laboratory Exercise #1 Introduction to MATLAB Colorado State University Department of Mechanical Engineering MECH 417 - Laboratory Exercise #1 Introduction to MATLAB Contents 1) Vectors and Matrices... 2 2) Polynomials... 3 3) Plotting and Printing...

More information