Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 1 Module 2 Moving Between Excel & R Worlds Do See & HearRead Learning PowerPoint.

Slides:



Advertisements
Similar presentations
Live Excel PRESENTER: Brad Leupen | CTO, Entrinsik |
Advertisements

R for Macroecology Aarhus University, Spring 2011.
8. Introduction to Spreadsheet CSCI N207 Data Analysis Using Spreadsheet Lingma Acheson Department of Computer and Information Science,
Spreadsheet Basics Computer Technology.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
Decision Analysis Tools in Excel
1 Linking & Consolidating Worksheets Applications of Spreadsheets.
Chapter 6 Financial Forecast. Agenda Developing a financial forecast model Advanced formatting Using the scenario manager to facilitate decision-making.
OFFICE CHOUM AHMED Microsoft Excel Lesson 04.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
 Easy to create tables in Word  Advantages to using Excel › Use charts to represent data in graphic form › Import data from text or databases › Analyze.
Chapter 5 Creating, Sorting, and Querying a Table
Chapter 8 Data Analysis. Agenda Functions –AND and OR –COUNT, COUNTA, and COUNTIF –CONCATENATE and TRIM –RANK and QUARTILE –MOD and ROW Goal Seek in decision-making.
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
PROJECT OVERVIEW PINGER EXECUTIVE PLOTS AKBAR MEHDI.
Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row.
Microsoft Excel 2010 Chapter 7
Tutorial 7: Using Advanced Functions and Conditional Formatting
A Simple Guide to Using SPSS© for Windows
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
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.
Copyright © 2004 Prentice-Hall. All rights reserved. 1 Essentials Excel 2003 – Level 1 Project 1: Taking a Tour of Excel 2003.
End Show Introduction to Electronic Spreadsheets Unit 3.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Integrating Microsoft Project with Other Programs
Microsoft Excel 2013: Excel Power User Course with Jim Mollé Learn iT! Computer Software Training.
1CP102_module 3: spreadsheet2 More features in Excel Selection: a cell, a range, multiple ranges Name a range: to give name to a selected range or multiple.
Microsoft Office Excel 2013 Expert Microsoft Office Excel 2013 Expert Courseware # 3254 Lesson 5: Pivot Charts and Advanced Formulas.
CS1100: Access Reports Microsoft Access Report Construction Created By Martin Schedlbauer CS11001Microsoft Access.
Coding for Excel Analysis Optional Exercise Map Your Hazards! Module, Unit 2 Map Your Hazards! Combining Natural Hazards with Societal Issues.
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
With Microsoft Excel 2007 Comprehensive 1e© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2007 Comprehensive.
Excel Projects 5 & 6 Notes Mr. Ursone. Excel Project 5: Sorting a List  Sorting: Arranging records in a specific sequence  The Sort command is on the.
ODBC : What is it and how does it work with MDS ?.
First Screen : First window form will always remain open, for the user to select menu options. 1.
Exploring Spreadsheet Software Chap 1: Introducing Excel 2002.
Introduction to to R Emily Kalah Gade University of Washington Credit to Kristin Siebel for development of much of this PowerPoint.
Microsoft Access 2010 Building and Using Queries.
The Advantage Series ©2004 The McGraw-Hill Companies, Inc. All rights reserved Chapter 8 Managing Worksheet Lists Microsoft Office Excel 2003.
Chapter 19 Managing Worksheet Lists. Creating Lists ► Microsoft Office Excel 2003 is inarguably the most powerful electronic spreadsheet available. ►
The Advantage Series © 2004 The McGraw-Hill Companies, Inc. All rights reserved CHAPTER 2 Performing More Integration Tasks.
Prescriptive Analytics Appendix A EXCEL TOOLS FOR THE MANAGEMENT SCIENTIST Business Analytics with Management Science Models and Methods Arben Asllani.
Microsoft Office Excel 2013 ® ® Abdul Hameed Using Advanced Functions and Conditional Formatting.
McGraw-Hill/Irwin The O’Leary Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lab 6 Creating and Using Lists and.
Introduction to Excel The Basics of Microsoft Excel 2010.
1 After completing this lesson, you will be able to: Create and run a query. Specify criteria in a query. Create a calculated field. Create a multiple-table.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
Microsoft Excel – Pivot Tables Introduction to Microsoft Excel Pivot tables Please login to the computers and launch Microsoft Excel. Rob Jones Room WG43.
Chapter 6 Creating, Sorting, and Querying a Table
Spreadsheets the basics. Readings n As per Module 5.
Excel 2007 Part (3) Dr. Susan Al Naqshbandi
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
1. Tables, Charts, and Graphs Microsoft Word & Excel 2003.
Microsoft Access 2000 Creating Queries, Reports and Web Pages.
R objects  All R entities exist as objects  They can all be operated on as data  We will cover:  Vectors  Factors  Lists  Data frames  Tables 
Chapter 10: Working with Large Data Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Data & Graphing vectors data frames importing data contingency tables barplots 18 September 2014 Sherubtse Training.
Microsoft Excel Prepared by the Academic Faculty Members of IT.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
BUSINESS MATHEMATICS & STATISTICS. LECTURE 4 Review Lecture 3 Calculating simple or weighted averages Using Microsoft Excel.
Pmt Function Vlookup Function Excel Database.  Naming a Range is very useful Makes copying more clear because formula or function contains a name rather.
Microsoft Excel Illustrated Introductory Workbooks and Preparing them for the Web Managing.
MSAA PRESENTS: AN EXCEL TUTORIAL
Bim Spring Final Review 2015.
SUB-ICT STD-10 Working with Data in Microsoft Excel
ECONOMETRICS ii – spring 2018
Topic 11 Lesson 1 - Analyzing Data in Access
Pivot tables and charts
Presentation transcript:

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 1 Module 2 Moving Between Excel & R Worlds Do See & HearRead Learning PowerPoint must be in View Show Mode to See videos and hyperlinks

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 2 Module 2 Moving Between Excel & R Worlds What We’ll Cover Identify Essential Concepts that Excel Users need to understand to learn R Establish correspondence between R and Excel terminology Show same calculations and plots in Excel and R –Start with Excel workbook, basic calculations and simple plot –Export the Workbook to CSV file –Reproduce calculations, plots in R

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 3 Excel & R Worlds 30 Minute Video – Walks through Excel & R features Click video image to start video

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 4 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 5 Display Excel World –See data right on screen –Formulas are not visible, need to select cell to see or use Control ~

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 6 Display Excel World –See data right on screen –Formulas are not visible, need to select cell to see or use Control ~ R World –See script on screen, comparable to seeing formula view in Excel –View Data Options: Text Editor (Notepad.exe) Can view my_data data.frame with R functions: –my_data shows all data –head(my_data,n) shows first n rows –tail(my_data,n) shows last n rows

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 7 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 8 User Interface Point & Click versus Command Line Excel users very familiar & comfortable with point & click To make a chart in Excel 2003, we: –Click chart icon –We follow chart wizard By answering wizard prompts, we pass chart parameters to the Excel chart engine

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 9 User Interface Point & Click versus Command Line Excel users very familiar & comfortable with point & click To make a chart in Excel 2003, we: –Click chart icon –We follow chart wizard By answering wizard prompts, we pass chart parameters to the Excel chart engine R’s approach is to have user directly specify chart parameters in function call: > plot(anom ~ yr, data = my_Data, type = “l”, col = “red”)

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 10 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line Data Structure Workbook Worksheet Column Cell Data.frame (List, Matrix, Array) Vector Vector[I]

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 11 Data Structure Everything is by address: row/col or range name Range(B2:B22) Sheet1!range(“B2:B22”) B6 Excel WorldR World Everything is an object with a name Column of data is called vector with name (default is V1) Group of vectors called data frame data$Glob or data[2] data$Glob[5] or data[5,2]

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 12 Data Structure ExcelR Data groupWorksheet dataset with * Same # rows data.frame Column of dataColumn B B2:B100 Vector Data value in rangeB3Vector[3] Dynamic Data Range Define Name =offset() Vectors dynamic

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 13 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line Data Structure Workbook Worksheet Column Cell Data.frame (List, Matrix, Array) Vector Vector[I] Data Types numeric character logical numeric character logical factor

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 14 Data Types Excel & R Have 3 similar data types Numeric (1, 11, 19.2) Character (“Joe”, “Bill”) Logical (T,F) R has Factor Data Type

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 15 Factors – What Are They? Why Are They important? Data sets often contain categorical data that subdivides data –Gender (Male, Female) –Language ( English, French, Chinese, etc) –Energy Source (fossil, renewable) Why use factor data type? 1.Data integrity – limits data to specified levels 2.Easy to summarize data by factor levels 3.Multivariate plotting – distinguish by factor Character data type does not ensure data integrity (M/F; m/f, male/female) R’s factor () function good for categorical data >gender_f <- factor(gender, levels = c(“M”, “F”) –Establishes factor gender_f –Sets acceptable values with levels argument to M or F

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 16 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line Data Structure Workbook Worksheet Column Cell Data.frame (List, Matrix, Array) Vector Vector[I] Data Types numeric character logical numeric character logical factor Data Summary & Query by Criteria sumif(); sumproduct(); {Array formulas}; Pivot Table Index (,,,Match(,,),) as.factor() subset(), tapply() which()

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 17 How to Summarize Data by Factor Menu Array formulas are not user friendly Excel WorldR World

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 18 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line Data Structure Workbook Worksheet Column Cell Data.frame (List, Matrix, Array) Vector Vector[I] Data Types numeric character logical numeric character logical factor Data Summary & Query by Criteria sumif(); sumproduct(); {Array formulas}; Pivot Table =Index(,, Match,,),) as.factor() subset(), tapply() which() Missing Values Inconsistent HandlingProper Handling

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 19 Missing Data Excel has serious shortcomings when it comes to handling missing data –Blanks can be converted to zero when blank cell is referenced in formula –Functions like regression can not handle blank cells in range R addresses missing data directly –User specifies code for missing data in read.table() –User specifies how to handle missing data in calculations Video on next slide shows how Excel & R handle missing data

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 20 Missing Data Click video image to start video

Learn R Toolkit D Kelly O'DayExcel & R WorldsMod 2 - Excel & R Worlds: 21 Comparison of Excel & R Worlds ExcelR Display Look at DataLook at Script User Interface Point & ClickCommand Line Data Structure Workbook Worksheet Column Cell Data.frame (List, Matrix, Array) Vector Vector[I] Data Types numeric character logical numeric character logical factor Data Summary by Criteria sumif(); sumproduct(); {Array formulas}; Pivot Table subset() Missing Values Inconsistent HandlingProper Handling