R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili F.Musili@cgiar.org ICRAF-Geoscience Lab.

Slides:



Advertisements
Similar presentations
Guy Griffiths. General purpose interpreted programming language Widely used by scientists and programmers of all stripes Supported by many 3 rd -party.
Advertisements

Introduction to Computers Section 6A. home The Operating System (OS) The operating system (OS) is software that controls the interaction between hardware.
Introduction to S-Plus by Francesco Ferretti Analysis of Biological Data Course Winter term 2007 Dalhousie University.
Writing functions in R Some handy advice for creating your own functions.
Jing Capture, record, and share instantly.. Some ways to use Jing (by TechSmith) Add visuals to your online conversations!
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Section 2 Software.
An Introduction to Designing and Executing Workflows with Taverna Katy Wolstencroft University of Manchester.
Introduction to Windows7
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
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.
R Brown-Bag Seminar 2: Hands-on Antony Karanja Ndungu Research Methods Group-ICRAF.
Downloading and Installing Autodesk Revit 2016
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.
Chapter 11 An Introduction to Visual Basic 2005 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Introduction to Computer Operating Systems
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Performing statistical analyses using the Rshell processor Original material by Peter Li, University of Birmingham, UK Adapted by Norman.
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.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
THE WINDOWS OPERATING SYSTEM Computer Basics 1.2.
Chris Knight Beginners’ workshop.
Introduction to R Dr. Satish Nargundkar. What is R? R is a free software environment for statistical computing and graphics. It compiles and runs on a.
Introduction to Data Manipulation, Analysis, and Visualization with R Patrick Grof-Tisza.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
MET4750 Techniques for Earth System Modeling MET 5990 Techniques for Earth System Modeling and Research (
How To Make The Backup Of AVG Antivirus 2017 Definitions.
Physics 114: Lecture 1 Overview of Class Intro to MATLAB
bitcurator-access-webtools Quick Start Guide
Block 1: Introduction to R
Development Environment
Release Numbers MATLAB is updated regularly
Working in the Forms Developer Environment
Performing statistical analyses using the Rshell processor
Topics Introduction Hardware and Software How Computers Store Data
Computer Software: Programming
Getting Started with R.
VMWare Workstation Installation
COMP 170 – Introduction to Object Oriented Programming
INSTALLING PYTHON 3 COSC 1306 Fall 2017.
Introduction to Programming the WWW I
Installing R and R Studio
CMPE 152: Compiler Design ANTLR 4 and C++
How to Install an old version of Adobe Reader on Mac OS.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Lab 1 Introductions to R Sean Potter.
Introduction to R.
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
An introduction to data analysis using R
CIS16 Application Development Programming with Visual Basic
At Software Download Help, you will get to know about all the processes from downloading to installation at just one place without wasting even a bit of.
Use of Mathematics using Technology (Maltlab)
Code is on the Website Outline Comparison of Excel and R
This is where R scripts will load
CSCI N207 Data Analysis Using Spreadsheet
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Double click Microsoft Visual Studio 2010 on the Computer Desktop
bitcurator-access-webtools Quick Start Guide
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
This is where R scripts will load
This is where R scripts will load
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Using R for Data Analysis and Data Visualization
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Web Application Development Using PHP
Advanced Speed Control with SINAMICS S120 Starter Script File
Packages Maria Novosolov.
WINDOW 7 INSTALLATION Prepared By:- Mr. Pawan Kumar
Presentation transcript:

R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili F.Musili@cgiar.org ICRAF-Geoscience Lab

Objectives Understand R as a programming language. Install R and R studio Overview of R studio Panels Introduction of R as an object oriented language

About R and R studio R is a free software environment for statistical computing and graphics. It’s open source and therefore available free of charge. R studio is a powerful and productive user interface for R. It's free and open source, and works great on Windows, Mac, and Linux. R is an object oriented programming language where we create objects and manipulate them as intended. Objects can be Data frames, vectors, matrices, lists, raw data, spatial objects , maps etc.

Why r language R is not just a statistics package, it’s a language(allows you to specify the performance of new tasks without any limitations) R is designed to operate the way that problems are thought about and has very simple syntax. R is both flexible and powerful. It is very interactive and thus suitable for data analysis. R syntax is very simple and intuitive. For instance, n <- 10 + 2 n [1] 12

Install r for windows Go to your browser and search for R 3.2.4 windows Choose Download R-3.2.4 for Windows Click, Download R 3.2.4 for windows (64 megabytes, 32/64 bit ) Then, save the file and run it after download is complete. Click next in all the popups that appear then finish. Open the installed r

Install r for Mac Go to your browser and search for R 3.2.4 mac Choose R for Mac OS X In the page that opens, click old in the second line Scroll down the page and choose R-3.2.4.pkg Then, save the file and run it after download is complete. Click continue and then install Open the installed r

Install r studio Open browser and search for r studio download Choose Download RStudio –RStudio Scroll down the page that opens and go to Installers Choose the download file according to your operating system Save the file and run it after download is complete. Click Next and then Finish Open R studio

Upgrading r to a specific version FOR MAC: Download and install the new version of R you need. Go to /Library/frameworks/Rframeworks/versions/<old version>/Resources/library and copy everything inside. Paste the above items inside /Library/frameworks/Rframeworks/versions/<new version>/Resources/library Restart R studio Write “update.packages()” on the console and execute

Upgrading r to a specific version FOR Windows: Download and install the new version of R you need. Go to Libraries\Documents\R\win-library\<old version> and copy everything inside. Paste the above items inside Libraries\Documents\R\win-library\<new version>Restart R studio Write “update.packages()” on the console and execute

CONSOLE (Script output panel) RStudio Data Objects R SCRIPT File ,Plots, Package installation and Help panels CONSOLE (Script output panel)

as an object oriented language An object can be created with the “assign” operator which is written as an arrow with a minus sign and a bracket; this symbol can be oriented left-to-right or the reverse: n <- 15 n [1] 15 5 -> n [1] 5 x <- 1 X <- 10 x [1] 1 X [1] 10 If the object already exists, its previous value is erased. The value assigned this way may be the result of an operation and/or a function. n<-3+sqrt(10) [1] 6.162278

NEXT …............ Installation of packages Importing different data into r Data manipulation in R