> Introduction to Nelson Rios, Tulane University

Slides:



Advertisements
Similar presentations
A very short introduction to R Pia Wohland. R is… -A statistical software -Programming language -Free! -Very good in handling and manipulating data sets.
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
Bina Ramamurthy 6/28/2014 CSE651C, B. Ramamurthy1.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Tutorial 12 Working with Arrays, Loops, and Conditional Statements
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
Introduction to ArcView ArcView_module_2 May 12, 10:40 AM.
Guide To UNIX Using Linux Third Edition
Attribute databases. GIS Definition Diagram Output Query Results.
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
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.
Statistical Software An introduction to Statistics Using R Instructed by Jinzhu Jia.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
Applied Bioinformatics Introduction to Linux and R Bing Zhang Department of Biomedical Informatics Vanderbilt University
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Lesson 4 Computer Software
Basic R Programming for Life Science Undergraduate Students Introductory Workshop (Session 1) 1.
ASP.NET Programming with C# and SQL Server First Edition
Java Programming, 3e Concepts and Techniques Chapter 2 - Part 2 Creating a Java Application and Applet.
Introduction to Shell Script Programming
732A44 Programming in R.  Self-studies of the course book  2 Lectures (1 in the beginning, 1 in the end)  Labs (computer). Compulsory submission of.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Python: An Introduction
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.
Shell Script Programming. 2 Using UNIX Shell Scripts Unlike high-level language programs, shell scripts do not have to be converted into machine language.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
Introduction to MATLAB Session 3 Simopekka Vänskä, THL Department of Mathematics and Statistics University of Helsinki 2011.
Introduction to R / sma / Bioconductor Statistics for Microarray Data Analysis The Fields Institute for Research in Mathematical Sciences May 25, 2002.
R Programming Yang, Yufei. Normal distribution.
Data Manipulation Steve Allison
CS4710 Why Progam?. Why learn to program? Utility of programming skills: understand tools modify tools create your own automate repetitive tasks automate.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Chapter Six Introduction to Shell Script Programming.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
ASP Mr. Baha & Dr.Husam Osta  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.
Introduction to Geodatabases
Exposure Mapping Assistance Workshop - April Kingstown St. Vincent and the Grenadines Eduardo Mattenet Consultant 2013 Navigating with QGIS 1.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
Introduction to Data Manipulation, Analysis, and Visualization with R Patrick Grof-Tisza.
PHP using MySQL Database for Web Development (part II)
Web Database Programming Using PHP
Databases.
Data Tools: R and RStudio
Programming in R Intro, data and programming structures
Introduction to Visual Basic 2008 Programming
Web Database Programming Using PHP
R Programming.
Expressions and Control Flow in JavaScript
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
MATLAB DENC 2533 ECADD LAB 9.
Introduction to Python
R Bina Ramamurthy CSE651C, B. Ramamurthy 12/7/2018.
PHP.
R basics workshop for REU students
Web DB Programming: PHP
Installing Packages Introduction to R, Part II
May 31-June 2, 2016, Missouri Botanical Garden
An Introduction to Linux
CSE 303 Concepts and Tools for Software Development
Querying your geodata. Tools to improve your search for knowledge.
R Course 1st Lecture.
PHP an introduction.
Presentation transcript:

> Introduction to Nelson Rios, Tulane University Biodiversity Informatics Training Workshop Boulder, CO

What is R Open source interpreted programming language and development environment Initially release in 1993 Influenced by the S programming language Focus on statistics, data analysis & graphics Extensible via user contributed packages

Getting R www.r-project.org Available for Windows, Macintosh, Linux & as Source Code Current release (30 Mar 2012): R 2.15.0

RGui

Working directory Default location used to save and retrieve files. Use getwd() to determine current working directory Use setwd(new_path) to change current working directory

Objects Used to store values Case sensitive Named with alphanumeric characters Cannot start with a number Persistent until reassigned or removed from objects list. User rm(obj_name) to remove. Values can be assigned to variables via <- or = Use objects() or ls() to view list of objects in the current environment.

Logical Operators == Equal to > Greater than < Less than <= Less than or equal to >= Greater than or equal to <> or != Not equal to

Example Code

Getting Help ?fxn or help(fxn) > ?round

Arrays

Matrices > (m*n)[2,4] > (m*n)[8] or

Conditional Execution: if Statements Syntax: if (expr1) expr2 else expr3 Use logical operators in if statements: ==, >, <, <=, >=, <>

for Loops Syntax: for (name in expr1) expr2

Breaking out of Loops next can be used to discontinue the rest of a particular cycle and skip to the next iteration in the loop

while Loops Syntax: while (condition) expr

Expression is repeated until break is called repeat Loops Syntax: repeat expr Expression is repeated until break is called

Getting Data from a File

Selecting Columns

Data source can also be on web

Extending R Via user-created packages available from repositories CRAN (Comprehensive R Archive Network) Bioconductor

Installing and using Packages Use GUI to select mirror, select package and install package Package: maps Draw lines and polygons as specified by a map database. Package: mapproj Converts latitude and longitude into projected coordinates. Required by maps package, if we want to use projections other than default (rectangular). Package: maptools Set of tools for manipulating and reading geographic data, in particular ESRI shapefiles. Also installs package sp. Package: sp A package providing classes and methods for spatial data: points, lines, polygons and grids After installing use library() or GUI to load packages prior to use. Use search() to view active packages.

Using Packages Rectangular projection Bonne equal-area projection

U.S. Census State Boundaries Results from Georeferencing

Filtering Data Use logical operators in filter expression: ==, >, <, <=, >=, <> StateProvince==“Missouri”

Editing records in your data frame

More Information http://cran.r-project.org/doc/manuals/R-intro.pdf