Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR 97333 (541) 754-4790

Slides:



Advertisements
Similar presentations
ITEC 1001 Tutorial 1 Using Common Features of Microsoft Office 2003.
Advertisements

Microsoft Office Illustrated Fundamentals Unit C: Getting Started with Unit C: Getting Started with Microsoft Office 2010 Microsoft Office 2010.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills Mark Worden Instructor Use your spacebar or down arrow key to advance slides.
ComfortLink™ II Control. ComfortLink™ II Smart Control This is not just a thermostat. It’s an energy command center. Trane ComfortLink™ II is an easy-to-use,
HOW MANY HAVE USED QUALTRICS? WHO WHAT WHEN WHERE WHY.
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Miscellaneous Windows 2000 Desktop Features Windows 2000 Intermediate.
Paint Shop Tutorial. Essential Overview New Corel Paint Shop Pro Photo X2 is the ideal choice for any aspiring photographer's digital darkroom. It's filled.
1 Lab Session-I CSIT120 Spring2001 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 continues (Session.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
XP 1 Using Common Features of Microsoft Office 2003 Rod Rodrigues.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
XP Using Common Features of Microsoft Office Tutorial 1.
Application Software: Essentials for knowledge workers
Applications Software
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
The Basic Java Tools A text editor to write Java program source code. A compiler to translate source code into bytecode. An interpreter to translate.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Creating a Web Page HTML, FrontPage, Word, Composer.
Microsoft Office 2010 Office 2010 and Windows 7: Essential Concepts and Skills.
Digital Image Processing Lecture3: Introduction to MATLAB.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Getting Started with Application Software
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
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.
Creating a Web Site to Gather Data and Conduct Research.
University of Sunderland CDM105 Session 5 Web Authoring Tools The past and present A history of web authoring tools and an overview of Macromedia Dreamweaver.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
SW318 Social Work Statistics Slide 1 Get ready to work on practice problems 1. Create a directory and subdirectory on your computer named C:\StudentData\SW318_Spring_2004.
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
Lesson 9: Windows Management Ms. Tracy Digital Literacy.
C OMPUTING E SSENTIALS Timothy J. O’Leary Linda I. O’Leary Presentations by: Fred Bounds.
Installing SAS 1. Requirements If you do not have an old copy of SAS installed on your computer, go directly to Slide 6. Make sure you have uninstalled.
Getting Started with Word & Saving Guided Lesson.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 04 - a Microsoft Windows Applications Common Features.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
Computers Tools for an Information Age Software Systems and Applications.
Pasewark & Pasewark 1 Office Lesson 1 Microsoft Office 2007 Basics and the Internet Microsoft Office 2007: Introductory.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
CST 1101 Problem Solving Using Computers
Release Numbers MATLAB is updated regularly
Getting Started with R.
International Computer Driving Licence Syllabus version 5.0
Operating Microcomputer
CIS16 Application Development Programming with Visual Basic
Digital Image Processing
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Computers Tools for an Information Age
European Computer Driving Licence
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Microsoft Office Illustrated Fundamentals
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
The Web Collection Standard CS3 Revealed
A brief introduction to the nutrient tool-kit, getting R Studio to work and checking the data Martyn Kelly
Presentation transcript:

Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)

What is R? A language and environment for statistical computing and graphics Based on the “S” system developed by Bell Laboratories From R Project for Statistical Computing R is available as Free Software S-Plus is a commercial implementation of the “S” system

The R Environment is an integrated suite of software effective data handling and storage calculations on spreadsheets and arrays integrated collection of statistical analysis tools graphical display on-screen or hardcopy a programming language add capability using packages (libraries)

Why use R for Aquatic Monitoring Survey Design & Analysis? Needed way to provide survey design and survey analysis algorithms to others (particularly states and tribal nations) No existing statistical software has the algorithms required Many organizations have limited ability to purchase any recommended commercial statistical software R is free, easily installed, and usable with training Our approach is to provide libraries that minimize knowledge required about R

Acquiring and Installing R Use web browser to access project.org/

Click on base

Click on CHANGES to see changes Click on README.R for instructions Click on R win32.exe to download

Documentation on Using R

Installing R Save the downloaded file to the desktop Uninstall any previous versions of R, if any  Not absolutely necessary Close all other programs Install the downloaded file by double clicking it  Standard Windows installer  Puts R in your Start Menu  Places an R icon on desktop  May take 5-10 minutes

Start R: Double click R desktop icon

Accessing Help on commands: base and packages

List of packages Key ones: base spsurvey

Installing Survey Libraries Download library from ARM web site   Click on “Download Software”  Put zip file on desktop or in folder Install library in R using menu

Use latest version Key Files: Users Guide, Changes, zip file for library

Install from local zip file

Find the saved zip file and click open: That installs the library!

Begin Survey Design or Analysis for a Project using R Create a new folder for the survey design or survey analysis task Recommend create a sub folder named “Original Data”  Place any original data files in this folder  Never change these files Double click R desktop icon or quick launch icon to start R Under R File menu,  go to Change Dir  Browse to find your project directory When done using R, exit and respond YES when asked if want to save workspace. When want to start R again to work on this project, go to project folder and open “.RData” file. This will automatically set R to use your project directory

Load spsurvey every time start R if doing survey design or survey analysis

Windows Topics File Associations: Control Panel

Executing Commands in R Three options to execute commands in R  Type commands in console window window automatically opens when start R Commands execute when hit “Enter” key  Use script window in R Under File menu either create New or Open existing script file Type commands in script window To execute commands, copy and paste into console window Close window and save to project directory Use saved script file when want to continue work on same project  Use another text editor program Type commands in editor Copy and Paste into R console window Advantages of R script window or text editor approach  Can save all your commands in both cases  Some text editors recognize R language and structure making it easy to locate errors (e.g. Tinn-R)  Redo the analysis if change data with little extra work  Can set up an example analysis and use as template for other analyses  Aid in QA for analysis process

Integrating R and Tinn-R Install R Start R Under R Edit Menu select GUI preferences Change to SDI from MDI Save change in etc folder: located under Program Files; R folder; R 2.30 folder Quit R Install Tinn-R Start Tinn-R

Things to be aware of Column names may be modified in R  “blanks” will become “.”  Unusual characters will become “.”  Unusual character at beginning (e.g. %), will change to “X.” Blanks in spreadsheet will be turned into missing data “NA” in spreadsheet will be interpreted as missing data, except when column is character Everything after “#” is ignored. Can be overridden. Reading a “csv” file may result in unanticipated results if columns contain “,” in character fields (use “tab” delimited instead)