R Basics / Course Business

Size: px
Start display at page:

Download "R Basics / Course Business"

Transcription

1 R Basics / Course Business We ll be using a sample dataset in class today: CourseWeb: Course Documents " Sample Data " Week 2 Can download to your computer before class CourseWeb survey on research/stats background still available. Thanks to everyone who s responded

2 R Basics

3 R Basics

4 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

5 R Commands Simplest way to interact with R is by typing in commands at the > prompt: R STUDIO R

6 R as a Calculator Typing in a simple calculation shows us the result: What s minus 283? Some more examples: 400 / 65 (division) 2 * 4 (multiplication) 5 ^ 2 (exponentiation)

7 Functions More complex calculations can be done with functions: sqrt(64) What the function is (square root) Can often read these left to right ( square root of 64 ) What do you think this means? abs(-7) In parenthesis: What we want to perform the function on

8 Arguments Some functions have settings ( arguments ) that we can adjust: round(3.14) - Rounds off to the nearest integer (zero decimal places) round(3.14, digits=1) - One decimal place

9 Nested Functions

10 Nested Functions We can use multiple functions in a row, one inside another - sqrt(abs(-16)) - Square root of the absolute value of -16 Don't get scared when you see multiple parentheses - Can often just read left to right - R first figures out the thing nested in the middle Can you round off the square root of 7?

11 Using Multiple Numbers at Once When we want to use multiple numbers, we concatenate them c(2,6,16) - A list of the numbers 2, 6, and 16 Sometimes a computation requires multiple numbers - mean(c(2,6,16)) Also a quick way to do the same thing to multiple different numbers: - sqrt(c(16,100,144))

12 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

13 Course Documents: Sample Data: Week 2 Reading plausible versus implausible sentences Scott chopped the carrots with a knife. Scott chopped the carrots with a spoon. Measure reading time on final word Note: Simulated data; not a real experiment.

14 Course Documents: Sample Data: Week 2 Reading plausible versus implausible sentences Reading time on critical word 36 subjects Each subject sees 30 items (sentences) half plausible, half implausible Interested in changes over time, so we ll track serial position (trial 1 vs trial 2 vs trial 3 )

15 Reading in Data Make sure you have the dataset at this point if you want to follow along: Course Documents " Sample Data " Week 2

16 Reading in Data RStudio Navigate to the folder in lower-right More -> Set as Working Directory Open a comma-separated value file: - experiment <-read.csv('week2.csv') Name of the dataframe we re creating (whatever we want to call this dataset) read.csv is the function name File name

17 Reading in Data Regular R Read in a comma-separated value file: - experiment <- read.csv('/users/ scottfraundorf/desktop/week2.csv') Name of the dataframe we re creating (whatever we want to call this dataset) read.csv is the function name Folder & file name Drag & drop the file into R to get the full folder & filename

18 Looking at the Data: Summary A big picture of the dataset: summary(experiment) summary() is a very important function Basic info & descriptive statistics Check to make sure the data are correct

19 Looking at the Data: Summary A big picture of the dataset: summary(experiment) We can use $ to refer to a specific column/variable in our dataset: summary(experiment$itemname)

20 Looking at the Data: Raw Data Let s look at the data experiment Ack That s too much How about just a few rows? head(experiment) head(experiment, n=10)

21 Reading in Data: Other Formats Excel: - library(gdata) - experiment <- read.xls('/users/ scottfraundorf/desktop/week2.xls') SPSS: - library(foreign) - experiment <- read.spss('/users/ scottfraundorf/desktop/ week2.spss', to.data.frame=true)

22 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

23 R Scripts Save & reuse commands with a script R File -> New Document R STUDIO

24 R Scripts Run commands without typing them all again R Studio: Code -> Run Region -> Run All: Run entire script Code -> Run Line(s): Run just what you ve highlighted/selected R: - Highlight the section of script you want to run - Edit -> Execute Keyboard shortcut for this: - Ctrl+Enter (PC), +Enter (Mac)

25 R Scripts Saves times when re-running analyses Other advantages? Some: - Documentation for yourself - Documentation for others - Reuse with new analyses/experiments - Quicker to run can automatically perform one analysis after another

26 R Scripts Comments Add # before a line to make it a comment - Not commands to R, just notes to self (or other readers) Can also add a # to make the rest of a line a comment summary(experiment$subject) #awesome

27 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

28 Descriptive Statistics Remember how we referred to a particular variable in a dataframe? - $ Combine that with functions: - mean(experiment$rt) - median(experiment$rt) - sd(experiment$rt) Or, for a categorical variable: - levels(experiment$itemname) - summary(experiment$subject)

29 Descriptive Statistics We often want to look at a dependent variable as a function of some independent variable(s) - tapply(experiment$rt, experiment $Condition, mean) - Split up the RTs by Condition, then get the mean Try getting the mean RT for each item How about the median RT for each subject? To combine multiple results into one table, column bind them with cbind(): cbind( tapply(experiment$rt, experiment$condition, mean), tapply(experiment$rt, experiment$condition, sd) )

30 Descriptive Statistics Can have 2-way tables... - tapply(experiment$rt, list(experiment$subject, experiment$condition), mean) - 1 st variable is rows, 2 nd is columns...or more - tapply(experiment$rt, list(experiment$itemname, experiment$condition, experiment $TestingRoom), mean)

31 Descriptive Statistics Contingency tables for categorical variables: - xtabs (~ Subject + Condition, data=experiment)

32 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

33 Subsetting Data Often, we want to examine or use just part of a dataframe Remember how we read our dataframe? - experiment <- read.csv(...) Create a new dataframe that's just a subset of experiment: - experiment.longrtsremoved <- subset(experiment, RT < 2000) New dataframe name Original dataframe Inclusion criterion: RT less than 2000 ms

34 Subsetting Data: Logical Operators Try getting just the observations with RTs 200 ms or more: - experiment.shortrtsremoved <- subset(experiment, RT >= 200) Why not just delete the bad RTs from the spreadsheet? Easy to make a mistake / miss some of them Faster to have the computer do it We d lose the original data No documentation of how we subsetted the data

35 Subsetting Data: AND and OR What if we wanted only RTs between 200 and 2000 ms? - Could do two steps: - experiment.temp <- subset(experiment, RT >= 200) - experiment.badrtsremoved <- subset(experiment.temp, RT <= 2000) One step with & for AND: - experiment2 <- subset(experiment, RT >= 200 & RT <= 2000)

36 Subsetting Data: AND and OR What if we wanted only RTs between 200 and 2000 ms? One step with & for AND: - experiment2 <- subset(experiment, RT >= 200 & RT <= 2000) means OR: - experiment.badrts <- subset(experiment, RT < 200 RT > 2000) - Logical OR ( either or both )

37 Subsetting Data: == and = Get a match / equals: - experiment.firsttrials <- subset(experiment, SerialPosition == 1) Words/categorical variables need quotes: - experiment.implausiblesentences <- subset(experiment, Condition=='Implausible') = means not equal to : - experiment.badsubjectremoved <- subset(experiment, Subject = 'S23') Note DOUBLE equals sign Drops subject S23

38 Subsetting Data: %in% Sometimes our inclusion criteria aren't so mathematical Suppose I just want the Ducks, Hornet, and Panther items We can check against any arbitrary list: - experiment.specialitems <- subset(experiment, ItemName %in% c('ducks', 'Hornet', 'Panther')) Or, keep just things that aren't in a list: - experiment.nonnativespeakersremoved <- subset(experiment, Subject %in% c('s10', 'S23') == FALSE)

39 Logical Operators Review Summary - > Greater than - >= Greater than or equal to - < Less than - <= Less than or equal to - & AND - OR - == Equal to - = Not equal to - %in% Is this included in a list?

40 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

41 Assignment Remember the pointing arrow used to create dataframes and subsets? - e.g., experiment <- read.csv(...) This is the assignment operator. It saves results or values in a variable - x <- sqrt(64) - CriticalTrialsPerSubject < Remember, typing a name by itself shows you the current value: - CriticalTrialsPerSubject Assigning a new value overwrites the old

42 Assignment We can use this to create new columns in our dataframe: - experiment$experimentnumber <- 1 - Here, the same number (1) is assigned to every trial Or, compute a value for each row: - experiment$logserialposition <- log(experiment$serialposition) - For each trial, takes the log serial position and saves that into LogSerialPosition - Similar to an Excel formula

43 ifelse() IF YOU WANT DESSERT, EAT YOUR PEAS OR ELSE

44 ifelse() ifelse(): Use a test to decide which of two values to assign: experiment$half <- ifelse( experiment$serialposition <= 15, 1, 2) Function name Half is 1 If it s NOT, Half is 2 If serial position IS <= 15 Possible to nest ifelse() if we need more than 2 categories: experiment$third <- ifelse(experiment$serialposition <= 10, 1, ifelse(experiment $SerialPosition <= 20, 2, 3))

45 ifelse() Instead of specific numbers, can use other columns or a formula: experiment$rt.fixed <- ifelse( experiment$testingroom==2, experiment$rt + 100, experiment$rt) How can we check if this worked? head(experiment) Fixed RTs are indeed 100 ms longer for TestingRoom 2

46 Which do you like better? - experiment$half <-ifelse(experiment $SerialPosition <= 15, 1, 2) - Shorter & faster to write vs: - CriticalTrialsPerSubject < experiment$half <- ifelse(experiment $SerialPosition <= (CriticalTrialsPerSubject / 2), 1, 2) - Explains where the 15 comes from helpful if we come back to this script later - We can also refer to CriticalTrialsPerSubject variable later in the script & this ensure it s consistent - Easy to update if we change the number of critical trials

47 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

48 Referring to Specific Cells So far, we ve seen how to - Create a new dataframe that s a subset of an existing dataframe - Modify a dataframe by creating an entire column What if we want to modify a dataframe by adjusting some existing values? e.g., replace all RTs above 2000 ms with the number 2000 ( fencing ) Creating a new subset won t work because we want to change the original dataframe Need a way to edit specific values

49 Referring to Specific Cells Use square brackets [ ] to refer to specific entries in a dataframe: - Row, column - experiment[3,7] Omit the row or column number to mean all rows or all columns: - experiment[3,] - experiment[,4] Row 3, all columns All rows in column 4 Can also use column names: experiment[,'rt'] All rows in the RT column Remember c()? We can check multiple rows: - experiment[c(1:4),]

50 Logical Indexing We can look at rows or columns that meet a specific criterion... - experiment[experiment$rt < 200,] Can use this as another way to subset: - experiment.shortrtsremoved <- experiment[experiment$rt > 200, ] - Actually, subset() just does this But we can also set values this way - experiment[experiment$rt < 200, 'RT'] < In the dataframe experiment, find the rows where RT < 200, and set the column RT to 200

51 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

52 Types R treats continuous & categorical variables differently: These are different data types: - Numeric - Factor: Variable w/ fixed set of categories (e.g., treatment vs. placebo) - Character: Freely entered text (e.g., open response question)

53 Types R's heuristic when reading in data: - Letters anywhere in the column factor - No letters, purely numbers numeric

54 Type Conversion: Numeric Factor Sometimes we need to correct this - Room 4 is not twice as much Room 2 Create a new column that's the factor (categorical) version of TestingRoom: - experiment$room.factor <- as.factor(experiment$testingroom) Or, just overwrite the old column: - experiment$testingroom <- as.factor(experiment$testingroom)

55 Conversion: Character Factor When ifelse() results in words, R creates a character variable rather than a factor - Need to convert it Wrong: - experiment$faveroom <- ifelse(experiment$testingroom==3, 'My favorite room', 'Not favorite') Right: - experiment$faveroom <- as.factor(ifelse(experiment $TestingRoom== 3, 'My favorite room', 'Not favorite'))

56 Type Conversion: Factor Numeric To change a factor to a number, need to turn it into a character first: - experiment$age.numeric <- as.numeric(as.character(experiment$ Age))

57 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

58 NA We might have run into some problems trying to change Age into a numerical variable... NA means not available... - Characters that don't convert to numbers - Missing data in a spreadsheet - Invalid computations

59 NA If we try to do computations on a set of numbers where any of them is NA, we get NA as a result... - sd(experiment$age.numeric) R wants you to think about how you want to treat these missing values

60 NA Solutions To ignore the NAs when doing a specific computation, use na.rm=true: - mean(experiment$age.numeric,na.rm=true) To get a copy of the dataframe that excludes all rows with an NA (in any column): - experiment.nonas <- na.omit(experiment) Change NAs to something else with logical indexing: - experiment[is.na(experiment$ Age.Numeric)==TRUE, ]$Age.Numeric <- 23

61 R Basics R commands & functions Reading in data Saving R scripts Descriptive statistics Subsetting data Assigning new values Referring to specific cells Types & type conversion NA values Getting help

62 Getting Help Get help on a specific known function: -?sqrt -?write.csv Try to find a function on a particular topic: -??logarithm - External resources: - ling-r-lang-l < > - Mailing list for using R in language research

63 Wrap-Up Can use R for: - Reading in data - Descriptive statistics - Subsetting data - Creating new variables Additional practice: - Baayen (2008) p Use commands on pp. 1-2 to get the data Next week: Mixed effects models Baayen, Davidson, & Bates (2008): Introduced mixed effects models to cog psych. Covers fixed and random effects

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical

More information

Basics: How to Calculate Standard Deviation in Excel

Basics: How to Calculate Standard Deviation in Excel Basics: How to Calculate Standard Deviation in Excel In this guide, we are going to look at the basics of calculating the standard deviation of a data set. The calculations will be done step by step, without

More information

An Introduction to R 1.1 Getting started

An Introduction to R 1.1 Getting started An Introduction to R 1.1 Getting started Dan Navarro (daniel.navarro@adelaide.edu.au) School of Psychology, University of Adelaide ua.edu.au/ccs/people/dan DSTO R Workshop, 29-Apr-2015 There s a book http://ua.edu.au/ccs/teaching/lsr/

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Basic Formulas Filling Data

More information

Formulas and Functions

Formulas and Functions Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.

More information

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar Microsoft Excel 2007 is a spreadsheet application in the Microsoft Office Suite. A spreadsheet is an accounting program for the computer. Spreadsheets are primarily used to work with numbers and text.

More information

Create your first workbook

Create your first workbook Create your first workbook You've been asked to enter data in Excel, but you've never worked with Excel. Where do you begin? Or perhaps you have worked in Excel a time or two, but you still wonder how

More information

Chapter 3: The IF Function and Table Lookup

Chapter 3: The IF Function and Table Lookup Chapter 3: The IF Function and Table Lookup Objectives This chapter focuses on the use of IF and LOOKUP functions, while continuing to introduce other functions as well. Here is a partial list of what

More information

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012

An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences. Scott C Merrill. September 5 th, 2012 An Introductory Tutorial: Learning R for Quantitative Thinking in the Life Sciences Scott C Merrill September 5 th, 2012 Chapter 2 Additional help tools Last week you asked about getting help on packages.

More information

command.name(measurement, grouping, argument1=true, argument2=3, argument3= word, argument4=c( A, B, C ))

command.name(measurement, grouping, argument1=true, argument2=3, argument3= word, argument4=c( A, B, C )) Tutorial 3: Data Manipulation Anatomy of an R Command Every command has a unique name. These names are specific to the program and case-sensitive. In the example below, command.name is the name of the

More information

Excel Shortcuts Increasing YOUR Productivity

Excel Shortcuts Increasing YOUR Productivity Excel Shortcuts Increasing YOUR Productivity CompuHELP Division of Tommy Harrington Enterprises, Inc. tommy@tommyharrington.com https://www.facebook.com/tommyharringtonextremeexcel Excel Shortcuts Increasing

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Filling Data Across Columns

More information

Text Input and Conditionals

Text Input and Conditionals Text Input and Conditionals Text Input Many programs allow the user to enter information, like a username and password. Python makes taking input from the user seamless with a single line of code: input()

More information

Week 1: Introduction to R, part 1

Week 1: Introduction to R, part 1 Week 1: Introduction to R, part 1 Goals Learning how to start with R and RStudio Use the command line Use functions in R Learning the Tools What is R? What is RStudio? Getting started R is a computer program

More information

Intermediate Excel 2016

Intermediate Excel 2016 Intermediate Excel 2016 Relative & Absolute Referencing Relative Referencing When you copy a formula to another cell, Excel automatically adjusts the cell reference to refer to different cells relative

More information

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES Chapter 1 : Examples of commonly used formulas - Office Support A collection of useful Excel formulas for sums and counts, dates and times, text manipularion, conditional formatting, percentages, Excel

More information

Blackboard for Faculty: Grade Center (631) In this document:

Blackboard for Faculty: Grade Center (631) In this document: 1 Blackboard for Faculty: Grade Center (631) 632-2777 Teaching, Learning + Technology Stony Brook University In this document: blackboard@stonybrook.edu http://it.stonybrook.edu 1. What is the Grade Center?..

More information

Excel Expert Microsoft Excel 2010

Excel Expert Microsoft Excel 2010 Excel Expert Microsoft Excel 2010 Formulas & Functions Table of Contents Excel 2010 Formulas & Functions... 2 o Formula Basics... 2 o Order of Operation... 2 Conditional Formatting... 2 Cell Styles...

More information

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 Quick Summary A workbook an Excel document that stores data contains one or more pages called a worksheet. A worksheet or spreadsheet is stored in a workbook, and

More information

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex Basic Topics: Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex Review ribbon terminology such as tabs, groups and commands Navigate a worksheet, workbook, and multiple workbooks Prepare

More information

Using Basic Formulas 4

Using Basic Formulas 4 Using Basic Formulas 4 LESSON SKILL MATRIX Skills Exam Objective Objective Number Understanding and Displaying Formulas Display formulas. 1.4.8 Using Cell References in Formulas Insert references. 4.1.1

More information

Module 1: Introduction RStudio

Module 1: Introduction RStudio Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator

More information

Adding records Pasting records Deleting records Sorting records Filtering records Inserting and deleting columns Calculated columns Working with the

Adding records Pasting records Deleting records Sorting records Filtering records Inserting and deleting columns Calculated columns Working with the Show All About spreadsheets You can use a spreadsheet to enter and calculate data. A spreadsheet consists of columns and rows of cells. You can enter data directly into the cells of the spreadsheet and

More information

Lecture- 5. Introduction to Microsoft Excel

Lecture- 5. Introduction to Microsoft Excel Lecture- 5 Introduction to Microsoft Excel The Microsoft Excel Window Microsoft Excel is an electronic spreadsheet. You can use it to organize your data into rows and columns. You can also use it to perform

More information

Excel Tool: Calculations with Data Sets

Excel Tool: Calculations with Data Sets Excel Tool: Calculations with Data Sets The best thing about Excel for the scientist is that it makes it very easy to work with data sets. In this assignment, we learn how to do basic calculations that

More information

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values STATISTICAL TECHNIQUES Interpreting Basic Statistical Values INTERPRETING BASIC STATISTICAL VALUES Sample representative How would one represent the average or typical piece of information from a given

More information

Module Four: Formulas and Functions

Module Four: Formulas and Functions Page 4.1 Module Four: Formulas and Functions Welcome to the fourth lesson in the PRC s Excel Spreadsheets Course 1. This lesson concentrates on adding formulas and functions to spreadsheet to increase

More information

Excel Foundation (Step 2)

Excel Foundation (Step 2) Excel 2007 Foundation (Step 2) Table of Contents Working with Names... 3 Default Names... 3 Naming Rules... 3 Creating a Name... 4 Defining Names... 4 Creating Multiple Names... 5 Selecting Names... 5

More information

Standardized Tests: Best Practices for the TI-Nspire CX

Standardized Tests: Best Practices for the TI-Nspire CX The role of TI technology in the classroom is intended to enhance student learning and deepen understanding. However, efficient and effective use of graphing calculator technology on high stakes tests

More information

Microsoft Excel XP. Intermediate

Microsoft Excel XP. Intermediate Microsoft Excel XP Intermediate Jonathan Thomas March 2006 Contents Lesson 1: Headers and Footers...1 Lesson 2: Inserting, Viewing and Deleting Cell Comments...2 Options...2 Lesson 3: Printing Comments...3

More information

STAT 113: R/RStudio Intro

STAT 113: R/RStudio Intro STAT 113: R/RStudio Intro Colin Reimer Dawson Last Revised September 1, 2017 1 Starting R/RStudio There are two ways you can run the software we will be using for labs, R and RStudio. Option 1 is to log

More information

What if Analysis, Charting, and Working with Large Worksheets. Chapter 3

What if Analysis, Charting, and Working with Large Worksheets. Chapter 3 What if Analysis, Charting, and Working with Large Worksheets Chapter 3 What we will cover Rotating Text Using the fill handle to create a series of month names Copying and pasting What we will cover Inserting,

More information

ENTERING DATA & FORMULAS...

ENTERING DATA & FORMULAS... Overview NOTESOVERVIEW... 2 VIEW THE PROJECT... 5 NAVIGATING... 6 TERMS... 6 USING KEYBOARD VS MOUSE... 7 The File Tab... 7 The Quick-Access Toolbar... 8 Ribbon and Commands... 9 Contextual Tabs... 10

More information

Excel Lesson 3 USING FORMULAS & FUNCTIONS

Excel Lesson 3 USING FORMULAS & FUNCTIONS Excel Lesson 3 USING FORMULAS & FUNCTIONS 1 OBJECTIVES Enter formulas in a worksheet Understand cell references Copy formulas Use functions Review and edit formulas 2 INTRODUCTION The value of a spreadsheet

More information

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language

More information

Excel 2007: Functions and Forumlas Learning Guide

Excel 2007: Functions and Forumlas Learning Guide Excel 2007: Functions and Forumlas Learning Guide Functions and Formulas: An Overview Excel uses functions (mathematical expressions already available in Excel) and formulas (mathematical expressions that

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel in Excel Although calculations are one of the main uses for spreadsheets, Excel can do most of the hard work for you by using a formula. When you enter a formula in to a spreadsheet

More information

2. INTRODUCTORY EXCEL

2. INTRODUCTORY EXCEL CS130 - Introductory Excel 1 2. INTRODUCTORY EXCEL Fall 2017 CS130 - Introductory Excel 2 Introduction to Excel What is Microsoft Excel? What can we do with Excel? CS130 - Introductory Excel 3 Launch Excel

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Excel contains numerous tools that are intended to meet a wide range of requirements. Some of the more specialised tools are useful to people in certain situations while others have

More information

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value Rev 6--11 Name Date TI-84+ GC : Order of Operations, Additional Parentheses, Roots and Absolute Value Objectives: Review the order of operations Observe that the GC uses the order of operations Use parentheses

More information

Intro To Excel Spreadsheet for use in Introductory Sciences

Intro To Excel Spreadsheet for use in Introductory Sciences INTRO TO EXCEL SPREADSHEET (World Population) Objectives: Become familiar with the Excel spreadsheet environment. (Parts 1-5) Learn to create and save a worksheet. (Part 1) Perform simple calculations,

More information

Excel Functions INTRODUCTION COUNT AND COUNTIF FUNCTIONS

Excel Functions INTRODUCTION COUNT AND COUNTIF FUNCTIONS INTRODUCTION Excel Functions Excel provides a large number of built-in functions that can be used to perform specific calculations or to return information about your spreadsheet data. These functions

More information

Opening a Data File in SPSS. Defining Variables in SPSS

Opening a Data File in SPSS. Defining Variables in SPSS Opening a Data File in SPSS To open an existing SPSS file: 1. Click File Open Data. Go to the appropriate directory and find the name of the appropriate file. SPSS defaults to opening SPSS data files with

More information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

Introduction to R Commander

Introduction to R Commander Introduction to R Commander 1. Get R and Rcmdr to run 2. Familiarize yourself with Rcmdr 3. Look over Rcmdr metadata (Fox, 2005) 4. Start doing stats / plots with Rcmdr Tasks 1. Clear Workspace and History.

More information

Excel Functions & Tables

Excel Functions & Tables Excel Functions & Tables Fall 2014 Fall 2014 CS130 - Excel Functions & Tables 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course revolves

More information

Example how not to do it: JMP in a nutshell 1 HR, 17 Apr Subject Gender Condition Turn Reactiontime. A1 male filler

Example how not to do it: JMP in a nutshell 1 HR, 17 Apr Subject Gender Condition Turn Reactiontime. A1 male filler JMP in a nutshell 1 HR, 17 Apr 2018 The software JMP Pro 14 is installed on the Macs of the Phonetics Institute. Private versions can be bought from

More information

Using Microsoft Excel

Using Microsoft Excel About Excel Using Microsoft Excel What is a Spreadsheet? Microsoft Excel is a program that s used for creating spreadsheets. So what is a spreadsheet? Before personal computers were common, spreadsheet

More information

NESTED IF STATEMENTS AND STRING/INTEGER CONVERSION

NESTED IF STATEMENTS AND STRING/INTEGER CONVERSION LESSON 15 NESTED IF STATEMENTS AND STRING/INTEGER CONVERSION OBJECTIVE Learn to work with multiple criteria if statements in decision making programs as well as how to specify strings versus integers in

More information

Excel Basics 1. Running Excel When you first run Microsoft Excel you see the following menus and toolbars across the top of your new worksheet

Excel Basics 1. Running Excel When you first run Microsoft Excel you see the following menus and toolbars across the top of your new worksheet Excel Basics 1. Running Excel When you first run Microsoft Excel you see the following menus and toolbars across the top of your new worksheet The Main Menu Bar is located immediately below the Program

More information

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: #### Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 Lab partners: Lab#1 Presentation of lab reports The first thing we do is to create page headers. In Word 2007 do the following:

More information

Exploring extreme weather with Excel - The basics

Exploring extreme weather with Excel - The basics Exploring extreme weather with Excel - The basics These activities will help to develop your data skills using Excel and explore extreme weather in the UK. This activity introduces the basics of using

More information

SPSS 11.5 for Windows Assignment 2

SPSS 11.5 for Windows Assignment 2 1 SPSS 11.5 for Windows Assignment 2 Material covered: Generating frequency distributions and descriptive statistics, converting raw scores to standard scores, creating variables using the Compute option,

More information

Chapter 13 Creating a Workbook

Chapter 13 Creating a Workbook Chapter 13 Creating a Workbook Learning Objectives LO13.1: Understand spreadsheets and Excel LO13.2: Enter data in cells LO13.3: Edit cell content LO13.4: Work with columns and rows LO13.5: Work with cells

More information

COMP-202 Unit 2: Java Basics. CONTENTS: Using Expressions and Variables Types Strings Methods

COMP-202 Unit 2: Java Basics. CONTENTS: Using Expressions and Variables Types Strings Methods COMP-202 Unit 2: Java Basics CONTENTS: Using Expressions and Variables Types Strings Methods Assignment 1 Assignment 1 posted on WebCt and course website. It is due May 18th st at 23:30 Worth 6% Part programming,

More information

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40 Objectives... 3 Introduction... 3 Excel Ribbon Components... 3 File Tab... 4 Quick Access Toolbar... 5 Excel Worksheet Components... 8 Navigating Through a Worksheet... 9 Downloading Templates... 9 Using

More information

Mobile Computing Professor Pushpendra Singh Indraprastha Institute of Information Technology Delhi Java Basics Lecture 02

Mobile Computing Professor Pushpendra Singh Indraprastha Institute of Information Technology Delhi Java Basics Lecture 02 Mobile Computing Professor Pushpendra Singh Indraprastha Institute of Information Technology Delhi Java Basics Lecture 02 Hello, in this lecture we will learn about some fundamentals concepts of java.

More information

Microsoft Excel 2010 Handout

Microsoft Excel 2010 Handout Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB The Desktop When you start MATLAB, the desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The following

More information

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) T APPENDIX B he Excel template for the Payroll Project is an electronic version of the books of account and payroll

More information

Excel Functions & Tables

Excel Functions & Tables Excel Functions & Tables Winter 2012 Winter 2012 CS130 - Excel Functions & Tables 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course

More information

Our Strategy for Learning Fortran 90

Our Strategy for Learning Fortran 90 Our Strategy for Learning Fortran 90 We want to consider some computational problems which build in complexity. evaluating an integral solving nonlinear equations vector/matrix operations fitting data

More information

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials Fundamentals We build up instructions from three types of materials Constants Expressions Fundamentals Constants are just that, they are values that don t change as our macros are executing Fundamentals

More information

1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of

1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of 1. Intro to the Calc User's Guide This manual is copyright (c) 1989 by D. Pankhurst. All rights reserved. It has been made available to purchasers of this Loadstar issue as an accompanying text program

More information

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note: 1 of 1 NOTE: IT IS RECOMMENDED THAT YOU READ THE ACCOMPANYING DOCUMENT CALLED INTRO TO EXCEL LAYOUT 2007 TO FULLY GRASP THE BASICS OF EXCEL Introduction A spreadsheet application allows you to enter data

More information

Excel for Gen Chem General Chemistry Laboratory September 15, 2014

Excel for Gen Chem General Chemistry Laboratory September 15, 2014 Excel for Gen Chem General Chemistry Laboratory September 15, 2014 Excel is a ubiquitous data analysis software. Mastery of Excel can help you succeed in a first job and in your further studies with expertise

More information

Part 1 Arithmetic Operator Precedence

Part 1 Arithmetic Operator Precedence California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Activity C Expressions Computers were originally designed for

More information

Excel Functions & Tables

Excel Functions & Tables Excel Functions & Tables Fall 2012 Fall 2012 CS130 - Excel Functions & Tables 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course revolves

More information

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software. Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means

More information

SAMLab Tip Sheet #1 Translating Mathematical Formulas Into Excel s Language

SAMLab Tip Sheet #1 Translating Mathematical Formulas Into Excel s Language Translating Mathematical Formulas Into Excel s Language Introduction Microsoft Excel is a very powerful calculator; you can use it to compute a wide variety of mathematical expressions. Before exploring

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

CS150 - Assignment 5 Data For Everyone Due: Wednesday Oct. 16, at the beginning of class

CS150 - Assignment 5 Data For Everyone Due: Wednesday Oct. 16, at the beginning of class CS10 - Assignment Data For Everyone Due: Wednesday Oct. 16, at the beginning of class http://dilbert.com/fast/2008-0-08/ For this assignment we re going to implement some initial data analysis functions

More information

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */

Language Basics. /* The NUMBER GAME - User tries to guess a number between 1 and 10 */ /* Generate a random number between 1 and 10 */ Overview Language Basics This chapter describes the basic elements of Rexx. It discusses the simple components that make up the language. These include script structure, elements of the language, operators,

More information

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions Microsoft Office Excel 2003 Tutorial 2 Working With Formulas and Functions 1 Use Excel s functions You can easily calculate the sum of a large number of cells by using a function. A function is a predefined,

More information

An Introduction to Stata Exercise 1

An Introduction to Stata Exercise 1 An Introduction to Stata Exercise 1 Anna Folke Larsen, September 2016 1 Table of Contents 1 Introduction... 1 2 Initial options... 3 3 Reading a data set from a spreadsheet... 5 4 Descriptive statistics...

More information

SPARK-PL: Introduction

SPARK-PL: Introduction Alexey Solovyev Abstract All basic elements of SPARK-PL are introduced. Table of Contents 1. Introduction to SPARK-PL... 1 2. Alphabet of SPARK-PL... 3 3. Types and variables... 3 4. SPARK-PL basic commands...

More information

Simulations How To for Fathom

Simulations How To for Fathom Simulations How To for Fathom. Start by grabbing a collection box (the picture of a treasure box) and drop it on your screen. You can double click on the word collection to rename it. 2. Click on your

More information

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

Lab1: Use of Word and Excel

Lab1: Use of Word and Excel Dr. Fritz Wilhelm; physics 230 Lab1: Use of Word and Excel Page 1 of 9 Lab partners: Download this page onto your computer. Also download the template file which you can use whenever you start your lab

More information

Python lab session 1

Python lab session 1 Python lab session 1 Dr Ben Dudson, Department of Physics, University of York 28th January 2011 Python labs Before we can start using Python, first make sure: ˆ You can log into a computer using your username

More information

GENERAL MATH FOR PASSING

GENERAL MATH FOR PASSING GENERAL MATH FOR PASSING Your math and problem solving skills will be a key element in achieving a passing score on your exam. It will be necessary to brush up on your math and problem solving skills.

More information

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project

Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Let s use Technology Use Data from Cycle 14 of the General Social Survey with Fathom for a data analysis project Data Content: Example: Who chats on-line most frequently? This Technology Use dataset in

More information

Activity: page 1/10 Introduction to Excel. Getting Started

Activity: page 1/10 Introduction to Excel. Getting Started Activity: page 1/10 Introduction to Excel Excel is a computer spreadsheet program. Spreadsheets are convenient to use for entering and analyzing data. Although Excel has many capabilities for analyzing

More information

The MathType Window. The picture below shows MathType with all parts of its toolbar visible: Small bar. Tabs. Ruler. Selection.

The MathType Window. The picture below shows MathType with all parts of its toolbar visible: Small bar. Tabs. Ruler. Selection. Handle MathType User Manual The MathType Window The picture below shows MathType with all parts of its toolbar visible: Symbol palettes Template palettes Tabs Small bar Large tabbed bar Small tabbed bar

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Getting started with simulating data in R: some helpful functions and how to use them Ariel Muldoon August 28, 2018

Getting started with simulating data in R: some helpful functions and how to use them Ariel Muldoon August 28, 2018 Getting started with simulating data in R: some helpful functions and how to use them Ariel Muldoon August 28, 2018 Contents Overview 2 Generating random numbers 2 rnorm() to generate random numbers from

More information

Excel 2010: Basics Learning Guide

Excel 2010: Basics Learning Guide Excel 2010: Basics Learning Guide Exploring Excel 2010 At first glance, Excel 2010 is largely the same as before. This guide will help clarify the new changes put into Excel 2010. The File Button The purple

More information

Part III Fundamentals of Microsoft Excel

Part III Fundamentals of Microsoft Excel Part III Fundamentals of Microsoft Excel Table of Contents 1. INTRODUCTION... 83 2. STARTING MICROSOFT EXCEL... 84 2.1 Steps for starting word...84 2.2 The Excel Window...84 3. MICROSOFT EXCEL BASICS...

More information

Book IX. Developing Applications Rapidly

Book IX. Developing Applications Rapidly Book IX Developing Applications Rapidly Contents at a Glance Chapter 1: Building Master and Detail Pages Chapter 2: Creating Search and Results Pages Chapter 3: Building Record Insert Pages Chapter 4:

More information

Spreadsheet EXCEL. Popular Programs. Applications. Microsoft Excel. What is a Spreadsheet composed of?

Spreadsheet EXCEL. Popular Programs. Applications. Microsoft Excel. What is a Spreadsheet composed of? Spreadsheet A software package (computer program) that can mix numbers, letters and perform simple mathematical operations. EXCEL Can be programmed Lab Lecture, part 1 Applications Accounting Statistical

More information

Create formulas in Excel

Create formulas in Excel Training Create formulas in Excel EXERCISE 1: TYPE SOME SIMPLE FORMULAS TO ADD, SUBTRACT, MULTIPLY, AND DIVIDE 1. Click in cell A1. First you ll add two numbers. 2. Type =534+382. 3. Press ENTER on your

More information

PhotoSpread. Quick User s Manual. Stanford University

PhotoSpread. Quick User s Manual. Stanford University PS PhotoSpread Quick User s Manual Stanford University PhotoSpread Quick Introduction Guide 1.1 Introduction 1.2 Starting the application 1.3 The main application windows 1.4 Load Photos into a cell 1.5

More information

GOOGLE APPS. If you have difficulty using this program, please contact IT Personnel by phone at

GOOGLE APPS. If you have difficulty using this program, please contact IT Personnel by phone at : GOOGLE APPS Application: Usage: Program Link: Contact: is an electronic collaboration tool. As needed by any staff member http://www.google.com or http://drive.google.com If you have difficulty using

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

IF & VLOOKUP Function

IF & VLOOKUP Function IF & VLOOKUP Function If Function An If function is used to make logical comparisons between values, returning a value of either True or False. The if function will carry out a specific operation, based

More information

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41 Table of Contents Objectives... 3 Introduction... 3 Excel Ribbon Components... 3 Office Button... 4 Quick Access Toolbar... 5 Excel Worksheet Components... 8 Navigating Through a Worksheet... 8 Making

More information

Wednesday. Wednesday, September 17, CS 1251 Page 1

Wednesday. Wednesday, September 17, CS 1251 Page 1 CS 1251 Page 1 Wednesday Wednesday, September 17, 2014 8:20 AM Here's another good JavaScript practice site This site approaches things from yet another point of view it will be awhile before we cover

More information