A brief introduction to the nutrient tool-kit, getting R Studio to work and checking the data Martyn Kelly MGKelly@bowburn-consultancy.co.uk www.microscopesandmonsters.wordpress.com.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Grade Cam Dustin Foster 2/4/13 Please open Chrome & Login to Skyward.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Business Computer Information Systems 1A Microsoft Office XP Word: Lessons 6 – Desktop Publishing, Lesson 7 – Working With Documents, Lesson 8 – Increasing.
CSS Central: Central Management Utility Screen View Samples Next.
Student Manager Catalog Builder An ACEware Webinar.
Add the word linked between the words or and information in the first line of the text. submit.
A Visual Follow-Along Guide to the Instructions of the NBTA Modular Hotel RFP.
Elizabeth North UMCES Horn Point Laboratory Using Surfer 8.0 UMCES HPL May 30, 2006.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
Note if in doubt click the “Help” button
1 Introduction to OBIEE: Learning to Access, Navigate, and Find Data in the SWIFT Data Warehouse Lesson 8: Printing and Exporting an OBIEE Analysis This.
MIS2502: Data Analytics MySQL and SQL Workbench David Schuff
Introduction to ArcGIS Add-Ins Exercises GIS/LIS Conference, 2014 Rochester, MN.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
Making an HTML Document Notepad Group Bo Kim Dan Carter Han Chong Justin Weaver Kris Lamont.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Washington Campus Compact New Time Log Database Note to users: You should use Internet Explorer to use this database. In other programs (i.e. Firefox)
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T8 DECISION MAKING USING ACCESS.
Installing and Using Active Directory Written by Marc Zacharko.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
1 Word 2010 Intro to Word – Part 2. 2 Steps for Creating a Document  Step 1: Open a Blank Document (New, or Open)  Step 2: Name the Document (Save As.
Excel Introducing Excel Lesson 1. Manage Workbooks Excel is a spreadsheet program Excel is a spreadsheet program It organizes and analyzes data It organizes.
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
Resetting Student PreTests. Within the MyNursingLab Study Plans, pretests can be taken only one time by the student.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Configuring IQmol for Windows machines, use version!
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Using This PowerPoint This PowerPoint presentation assumes your Computer Science teacher has provided you with the InstallingJava folder, which contains.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
MYSQL AND MYSQL WORKBENCH MIS2502 Data Analytics.
Dive Into® Visual Basic 2010 Express
Data Virtualization Demoette… ODBC Clients
Development Environment
IUIE Reporting Basics Workshop
Introduction to OBIEE:
Business Objects Overview
Chapter 1: An Introduction to Visual Basic 2015
Microsoft Word 2010.
mysql and mysql workbench
Introduction to ArcGIS Add-Ins
European Computer Driving Licence
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Aqua Data Studio.
Lab 1 Introductions to R Sean Potter.
Microsoft Excel All editions of Microsoft office.
MODULE 7 Microsoft Access 2010
Managing Rosters Screener Training Module Module 5
Code is on the Website Outline Comparison of Excel and R
Word offers a number of features to help you streamline the formatting of documents. In this chapter, you will learn how to use predesigned building blocks.
MIS2502: Data Analytics MySQL and SQL Workbench
Chapter 5 Microsoft Excel Window
8 6 MySQL Special Topics A Guide to MySQL.
Download and Installation of code::blocks
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Stata Basic Course Lab 2.
Scripts In Matlab.
Practice Activity – Part 1
Guidelines for Microsoft® Office 2013
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Presentation transcript:

A brief introduction to the nutrient tool-kit, getting R Studio to work and checking the data Martyn Kelly MGKelly@bowburn-consultancy.co.uk www.microscopesandmonsters.wordpress.com @Basil0saurus

Overview The CIS Guidance Manual explains the theory Ecological Regulatory Chemical Statistical CIS Guidance Document 23 explains the EU’s strategy for eutrophication This workshop focuses on the process of deriving appropriate boundaries

Toolkit versions The most flexible version, but the one where you are most likely to encounter problems A user-friendly version of the R Studio scripts but slightly less flexible and run from a remote server The easiest to use, but also the most basic and lacks some of the functionality

How to learn more about R https://ourcodingclub.github.io/

Introduction to R: our assumptions R and R Studio have been installed The toolkit has been extracted to a folder The data you want to use is in the correct format (see data template) This data file is in the same directory as the toolkit. Now open R Studio …

The R Studio interface The interface: your script opens here. You can edit it and save changes so that you can run them again in the future. Environment: tells you what data and information has been read into R or derived from calculations you have made. Other windows: includes all files in the working directory, plots you have produced, add-in packages you are using and help files The console: when you run a command you will see the outcome here.

R basics: the interface Text appears in black except: Text that will not be executed is green type a “#” to tell R that this is the case (useful for annotating scripts) Text/numbers that are functions are blue If text appears in red, you’ve made a mistake or R is sending you a warning This will appear in the console, not the interface If it is a mistake, the script will stop working If it is a warning, the script will continue to run Some options in R scripts are prefaced by “#”: data <- read.csv(file = FName, dec=".", header = TRUE) #For "." decimal #data <- read.csv(file = FName, dec=",",header = TRUE) #For “,” decimal, Central Europe (Move the “#” to the upper line of script if you use comma decimals) Everything in R is case sensitive To execute commands: Highlight lines in script and press “run”; or, Ctrl-enter; or, Press “source” to run entire script (not recommended for this course)

R basics: graphics Graphs appear under the “plots” tab in the bottom right window … … unless you specify a separate window: > win.graph(width=8,height=4) > par(mfrow=c(1,2)) Different for Macs: > quartz(width=8, height=4)

Help! Or type your query directly into Google (answer is often found in stackoverflow.com)

Data format Column headings must be exactly as in template Either cut and paste your values into template Or edit headings in your data file Avoid special characters (/,-,%,$ …) and accents in sample IDs

Data format Save your data file in *.csv format

Data format

More about data EQRs should be uncapped if possible i.e. not truncated at 1.0 N and P should have few values < detection limit Both these factors can cause deviations from linearity in biology-pressure relationships

Load “required packages” (p. # in Instruction manual) You don’t need these packages for this workshop Double click here

Check your data Page 24 in instruction manual Now load 01_Tkit_check_data.R See if you can run this script yourself, using the example dataset provided. First, edit filename (“Fname”) (line 15) currently: DataTemplate_Example1.csv Change this to: DataTemplate_Example1_wks.csv