Introduction to R Statistical Software



Similar documents
WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

MOODLE Installation on Windows Platform

ENABLE LOGON/LOGOFF AUDITING

L.E.A.P.S Electronic Freight Billing System Installation Guide

System Area Management Software Tool Tip: Agent Deployment utilizing. the silent installation with Active Directory

HADS 2.1.0e Installation and migration

Mesa DMS. Once you access the Mesa Document Management link, you will see the following Mesa DMS - Microsoft Internet Explorer" window:

ACTIVE DIRECTORY DEPLOYMENT

Creating Codes with Spreadsheet Upload

Group Mail Lists. Group Mailing Lists. Populating a Global Mail Lists 4. The Problem 6. The Solution 8. Scheduling Regular Updates 17

How to recover IE Client

HELP DOCUMENTATION E-SSOM DEPLOYMENT GUIDE

Troubleshooting Guide. 2.2 Click the Tools menu on Windows Explorer 2.3 Click Folder Options. This will open a dialog box:

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

CostsMaster. CostsMaster Dongle Server User Guide

Release Note RM Unify CSV Extraction Tool

Instructions for Importing (migrating) Data

Code::Blocks Student Manual

Editing your Website User Guide

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

Virtual Office Remote Installation Guide

Paperless Meeting Software Installation Instructions

ICP Data Entry Module Training document. HHC Data Entry Module Training Document

How To Configure CU*BASE Encryption

Step 2: Save the file as an Excel file for future editing, adding more data, changing data, to preserve any formulas you were using, etc.


Installation Guide for Windows May 2016

Installing FEAR on Windows, Linux, and Mac Systems

Mac OS X: INSTALLING TUNNELBLICK

INSTALLING MALTED 3.0 IN LINUX MALTED: INSTALLING THE SYSTEM IN LINUX. Installing Malted 3.0 in LINUX

1. First login to your RSJoomla! account 2. Head to Resources >> Customer Downloads >> RSMail! membership >> Downloads

Configuring the Samsung SDS CellWe EMM cloud connector

ProperSync 1.3 User Manual. Rev 1.2

OrCAD Capture with CIS Option and Allegro DE CIS. It explains the whole Capture CIS environment.

ilaw Installation Procedure

HHC Compensation Module Training Document

etoken Enterprise For: SSL SSL with etoken

XConsole GUI setup communication manual September 2010.

Remote Access VPN SSL VPN Access via Internet Explorer

Click-n-Print User Guide

DocAve Upgrade Guide. From Version 4.1 to 4.5

User Manual V1.3. NCB File /alahlincb

Troubleshooting Guide

WESSL-2 Script Builder Reference Guide

Getting Started using the SQuirreL SQL Client

File Manager Pro User Guide. Version 3.0

Tutorial 2: Reading and Manipulating Files Jason Pienaar and Tom Miller

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

Uninstallation Guide Funding Information System (FIS)

Moxa Device Manager 2.3 User s Manual

Paymetron Troubleshooting Guide

Updating Your Applied Account

UH CMS Basics. Cascade CMS Basics Class. UH CMS Basics Updated: June,2011! Page 1

MAMP 3 User Guide! March 2014 (c) appsolute GmbH!

Microsoft SharePoint 2010 End User Quick Reference Card

NDSR Utilities. Creating Backup Files. Chapter 9

EBSCO MEDIA FILE TRANSFER SOFTWARE INSTALLATION INSTRUCTIONS

NJCU WEBSITE TRAINING MANUAL

Introduction. Chapter 1

Qualtrics Survey Tool

SAS. Cloud. Account Administrator s Guide. SAS Documentation

Word 2010: Mail Merge to with Attachments

About Kobo Desktop...5. About Kobo Desktop...5. Downloading and installing Kobo Desktop...7. Buying ebooks with Kobo Desktop Buying a book...

Expat Tracker. User Manual HR Systems Limited

How to use SURA in three simple steps:

Exporting Client Information

October, Install/Uninstall Xerox Print Drivers & Apps Best Practices for Windows 8, 8.1, and 10 Customer Tip

airbackup installation and AdmiCash backup

Moxa Device Manager 2.0 User s Guide

How to Use JCWHosting Reseller Cloud Storage Solution

educ Office Remove & create new Outlook profile

Colligo Contributor File Manager 4.6. User Guide

SAS Visual Analytics 7.2 for SAS Cloud: Quick-Start Guide

Sigma Pharmaceuticals Plc. Electronic Transmission (ET) User Manual

IBI Group FTP: Usage Instructions

This manual provides information and instructions for Mac SharePoint Users at Fermilab. Using Sharepoint from a Mac: Terminal Server Instructions

Configuration Guide. Remote Backups How-To Guide. Overview

Creating an Excel Spreadsheet for Mail Merge. Excel Spreadsheet Mail Merge. 1 of 9 Design & Print Offline: Mail Merge

HP Server Management Packs for Microsoft System Center Essentials User Guide

How To Use A Pvpn On A Pc Or Mac Or Ipad (For Pc) With A Password Protected (For Mac) On A Network (For Windows) On Your Computer (For Ipad) On An Ipad Or Ipa

WatchDox for Windows User Guide. Version 3.9.0

Upgrade of Business Systems Data Warehouse Reporting

VirtualXP Users Guide

Desktop Fax. Administration and Fax Management User Guide

Using Virtual Machines

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

Creating a Website with Publisher 2013

COMP Upload File Management and Processing

Remedy ITSM Service Request Management Quick Start Guide

Specops Command. Installation Guide

How to deploy fonts using Configuration Manager 2012 R2

FY2016 Budget Collection. Software Instructions

How To Manage Inventory On Q Global On A Pcode (Q)

ParishSOFT Remote Installation

5.2.3 Thank you message Bounce settings Step 6: Subscribers 6.1. Creating subscriber lists 6.2. Add subscribers Manual add 6.2.

Transcription:

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

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 http://cran.us.rproject.org/

Click on base

Click on CHANGES to see changes Click on README.R-2.3.0 for instructions Click on R-2.3.0-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 http://www.epa.gov/nheerl/arm/ 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)