An Introduction to R 1.3 Some important practical matters when working with R

Size: px
Start display at page:

Download "An Introduction to R 1.3 Some important practical matters when working with R"

Transcription

1 An Introduction to R 1.3 Some important practical matters when working with R 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

2 Several boring tasks... Mundane but important things: Installing and loading packages Moving around the file system on the computer Loading and saving data, writing scripts

3 Several boring tasks... Mundane but important things: Installing and loading packages Moving around the file system on the computer Loading and saving data, writing scripts R or Rstudio? R has (of course) many tools for doing these tasks Rstudio has very good tools too, and easier ones These tasks aren t interesting data analysis stuff, so there s not much value in exploring the more powerful command line versions

4 Installing and loading packages

5 Packages What is a package? A collection of R functions and data sets that someone has contributed to the R ecosystem Packages extend the functionality of R: most of the value to R comes from the packages out there

6 Packages What is a package? A collection of R functions and data sets that someone has contributed to the R ecosystem Packages extend the functionality of R: most of the value to R comes from the packages out there Where do they come from? Most packages are distributed centrally via CRAN (comprehensive R archive network) There are lots of mirrors of CRAN. In Australia: CSIRO Canberra, University of Melbourne You can also get packages in other ways (not discussed)

7 Base R comes with about 30 packages >.packages(true) [1] "base" "boot" "class" "cluster" [5] "codetools" "compiler" "datasets" "foreign" [9] "graphics" "grdevices" "grid" "KernSmooth" [13] "lattice" "MASS" "Matrix" "methods" [17] "mgcv" "nlme" "nnet" "rpart" [21] "spatial" "splines" "stats" "stats4" [25] "survival" "tcltk" "tools" "utils" [29] "manipulate" (ignore the.packages command, I ll show an easier way in a moment)

8 After a while you end up with lots more >.packages(true) [1] "alr3" "base" "BayesFactor" "bitops" [5] "boot" "brew" "car" "class" [9] "cluster" "coda" "codetools" "coin" [13] "colorspace" "compiler" "datasets" "devtools" [17] "dichromat" "digest" "effects" "evaluate" [21] "ez" "foreign" "formatr" "Formula" [25] "ggplot2" "GPArotation" "graphics" "grdevices" [29] "grid" "gtable" "hexbin" "highr" [33] "Hmisc" "httr" "KernSmooth" "knitr" [37] "labeling" "lattice" "lavaan" "leaps"... [101] "stats" "stats4" "stringr" "survey" [105] "survival" "tcltk" "testit" "testthat" [109] "tools" "utils" "whisker" "XML" [113] "xtable" "zoo" (the only reason why there aren t more is that this is a new-ish machine, and I only install packages when I need them)

9 Rstudio has a nice display showing which packages you have installed

10 the package name

11 description of what it does

12 what version do you have installed?

13 click this button to uninstall the package

14 check to see if there are newer versions of your packages on CRAN

15 refresh the list (e.g., if you ve just done something new)

16 click this to install new packages (we ll come back to this)

17 is the package loaded? (check the box to load, uncheck to unload)

18 Terminology Installed means... That the package files are stored on your computer Your version of R is able to load the package

19 Terminology Installed means... That the package files are stored on your computer Your version of R is able to load the package Loaded means... That R has opened the package files (sort of), and now knows what they contain You can use the functions / data stored in the package

20 Terminology Installed means... That the package files are stored on your computer Your version of R is able to load the package Loaded means... That R has opened the package files (sort of), and now knows what they contain You can use the functions / data stored in the package The upshot of this: A package must be installed before you can load it A package must be loaded before you can use it

21 Why does it work like that??? R is big packages means that different authors will use the same name to refer to different functions! e.g., there are several packages that define a logit() function.

22 Why does it work like that??? R is big packages means that different authors will use the same name to refer to different functions! e.g., there are several packages that define a logit() function. Separating install from load avoids inconsistency: If every installed package were also loaded, it would introduce a lot of naming conflicts Install everything you might want to use sometime Load only those things you need to use now!

23 Let s load the MASS package

24 Let s load the MASS package library("mass", lib.loc="/library/frameworks/ R.framework/Versions/3.2/Resources/library") this pops up in the R console automatically... this is the actual loading command

25 Now let s load the Matrix package you don t usually have to specify the lib.loc bit: R knows where the default locations are, so you can just type the package name > library( "Matrix" ) Loading required package: lattice

26 Now let s load the Matrix package > library( "Matrix" ) Loading required package: lattice R keeps track of dependencies : some packages rely on content of other packages. So if you try to load package A, but it requires content from package B (which you don t have loaded), R will load package B too.

27 Try it yourself (Exercise 1.3.1)

28 How do I know if there s a conflict? > library( psych ) > library( car ) Attaching package: car psych and car both contain a function called logit(). When I load both packages, the more recently loaded one (car) takes precedence... The following object is masked from package:psych : logit

29 How do I know if there s a conflict? > library( psych ) > library( car ) Attaching package: car The following object is masked from package:psych : logit This is the warning message that R prints out. It says that logit exists in both packages... and that the version in psych is masked (i.e., you can t* access it)

30 Installing packages

31 Installing packages

32 Where to install from? (ignore this) Installing packages

33 Where to install to? (ignore this) Installing packages

34 Should dependencies be installed? Leave this checked, because the answer is almost always yes Installing packages

35 Which packages to install? Installing packages

36 Start typing, and notice that Rstudio gives a list of possible packages Installing packages

37 Installing packages > install.packages("psych") trying This URL is ' the command that psych_ tgz' appears in the R console Content type 'application/x-gzip' length bytes (2.6 Mb) opened URL ================================================== downloaded 2.6 Mb The downloaded binary packages are in /var/folders/cl/thhsyrz53g73q0w1kb5z3l_80000gn/t//rtmpo8qt8n/ downloaded_packages

38 Installing packages > install.packages("psych") Where is it downloading from? trying URL ' psych_ tgz' Content type 'application/x-gzip' length bytes (2.6 Mb) opened URL ================================================== downloaded 2.6 Mb The downloaded binary packages are in /var/folders/cl/thhsyrz53g73q0w1kb5z3l_80000gn/t//rtmpo8qt8n/ downloaded_packages

39 Installing packages > install.packages("psych") trying URL ' psych_ tgz' Content type 'application/x-gzip' length bytes (2.6 Mb) opened URL ================================================== downloaded 2.6 Mb What gets down loaded? The downloaded binary packages are in /var/folders/cl/thhsyrz53g73q0w1kb5z3l_80000gn/t//rtmpo8qt8n/ downloaded_packages

40 Installing packages > install.packages("psych") trying URL ' psych_ tgz' Content type 'application/x-gzip' length bytes (2.6 Mb) opened URL ================================================== downloaded 2.6 Mb The downloaded binary packages are in /var/folders/cl/thhsyrz53g73q0w1kb5z3l_80000gn/t//rtmpo8qt8n/ downloaded_packages Where did it store files?

41 Try it yourself (Exercise 1.3.2)

42 Loading a workspace (.Rdata) file

43 Workspace files The primary file format used by R is.rdata It is a saved workspace It contains whatever data sets, variables, functions etc that the workspace included when the file was created

44 Workspace files The primary file format used by R is.rdata It is a saved workspace It contains whatever data sets, variables, functions etc that the workspace included when the file was created How to load an.rdata file? Hard way: use the load() function manually Easy way #1: double click on the.rdata file in Finder/ Explorer, and (as long as Rstudio is the default application for Rdata files) it will load automatically Easy way #2: open using the Rstudio menus

45 Rstudio method for loading.rdata files This is the file open button

46 Rstudio method for loading.rdata files You can also use the File menu to do the same thing if you want to...

47 Opens a file open dialog box... It will look different on different operating systems... it will look like a familiar Windows thing on a Windows computer, a standard Mac thing on a Mac computer etc etc...

48 Browse for the file you want, and open: Clicking open will load the toydata.rdata file

49 And the data file is now loaded... load( ~/Work/Research/Rbook/workshop_dsto/datasets/toydata.Rdata") A command like this will appear in the R console (this command is what actually loaded the file)

50 And the data file is now loaded... load( ~/Work/Research/Rbook/workshop_dsto/datasets/toydata.Rdata") And the variable(s) that are stored in the file are now listed in the workspace

51 What does it mean to have data loaded? Loading means that you ve copied the variables in the.rdata file into your R workspace You can now use these variables for your analysis Deleting or changing variables in the workspace does not change the contents of the.rdata file i.e. R doesn t do autosave or anything of the sort This is a good thing!

52 Try it yourself (Exercise 1.3.3)

53 Saving a workspace file

54 Suppose you ve done some work and you want to save the workspace... I must have done something, there s all this new stuff in the workspace!

55 The save button is your friend

56 Again, it opens a system-specific dialog:

57 Browse, type a filename, and click save

58 Now the file is saved save.image( ~/Work/Research/Rbook/workshop_dsto/ datasets/toydata_modified.rdata.rdata") Again, the actual save command shows up in the R console

59 Try it yourself (Exercise 1.3.4)

60 Importing data from text files (CSV)

61 CSV is a standard universal format The raw data is just a plain text file: CSV stands for comma separated value

62 CSV is a standard universal format CSV files are often opened by spreadsheets, and produce tabular data like this...

63 CSV is a standard universal format > expt In R, a CSV file is imported as a data frame id age gender treatment hormone happy sad male control male drug male drug male control male drug male drug female control female drug female drug female control female drug female drug

64 Importing CSV data using Rstudio Click on this...

65 Importing CSV data using Rstudio And this...

66 Importing CSV data using Rstudio Once again, there s a standard dialog box that you can use to find and open the desired file...

67 This pops up

68 The raw data

69 The assumptions that R is using when it imports the data

70 What the data frame will look like if you import using these settings

71 The name of the data frame to create

72 Import when ready...

73 Rstudio opens a tab showing you the contents of the data frame you just imported

74 > toydata <- read.csv("~/work/research/rbook/ workshop_dsto/datasets/toydata.csv") > View(toydata) These are the actual R commands that Rstudio used to import the data

75 Try it yourself (Exercise 1.3.5)

76 Scripts: A great tool for storing the commands for your analyses

77 Background What do we know how do to? Load data from.rdata files and.csv files Type commands to get R to make output Save data / R output to.rdata files Install and load packages to extend R functionality

78 Background What do we know how do to? Load data from.rdata files and.csv files Type commands to get R to make output Save data / R output to.rdata files Install and load packages to extend R functionality What s missing? How to save a collection of R commands to run later i.e. scripts

79 Scripts What is an R script? R scripts are text files, and have a.r extension They contain a sequence of R commands that R will execute when the script is sourced (i.e., run)

80 Scripts What is an R script? R scripts are text files, and have a.r extension They contain a sequence of R commands that R will execute when the script is sourced (i.e., run) How do I use scripts? Type (or paste) R commands into the text file Save the script (usually in the same folder as the data) Use the source button to run it. Here s how...

81 Open an existing script? Click here

82 Click here Create a new script...

83 And here Create a new script...

84 Here s the new (empty) script

85 Type some R commands into the script:

86 This tells you that the script has some unsaved changes Type some R commands into the script:

87 These comments won t do anything, but it s a good idea to write extensive comments Type some R commands into the script:

88 These are the actual R commands that will do something! Type some R commands into the script:

89 Click here We should probably save the script!

90 Hey look, another standard dialog box... Save it as something like myscript.r...

91 Now to run the script... Click here

92

93 This is the R command that actually ran the script...

94 These two lines were executed first... and they created two variables

95 These two lines were executed first... and they created two variables

96 This line comes next...

97 And produced this output

98 Typical workflow Load data from CSV or Rdata file Play around with some analyses Copy some commands to a script Copy/paste helps, as does the history tab in Rstudio Often have separate scripts for different jobs Save the script(s) Save the variables created (and the raw data) to new Rdata file(s)

99 Try it yourself (Exercise 1.3.6)

100 Getting around the file system (briefly)

101 The working directory What is the working directory? Because R interacts with files on your computer, it thinks of itself as working in a particular location. Anytime you try to open a file without specifying a folder, R will look in the working directory. > getwd() [1] "/Users/dan"

102 Getting around the computer R commands getwd(), setwd() etc powerful but tedious to use Rstudio is cleaner Use the file panel to navigate graphically set as working directory option is equivalent to the R command setwd()

103 Initially, the file panel probably looks like this: a list of files and folders Using the file panel in Rstudio

104 Which folder are we currently looking at? This opens a Finder window (Mac) or Explorer window (Windows) which you can use to select a new folder to look at Clickable links 104

105 You can use the file panel to change the R working directory by clicking more, and then set as working directory

106 When you do, you ll see a setwd() command appear in the console, And the console panel itself will tell you what folder R is looking at...

107 End of this section

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

8.1 Come analizzare i dati: R

8.1 Come analizzare i dati: R 8.1 Come analizzare i dati: R Insegnamento di Informatica Elisabetta Ronchieri Corso di Laurea di Economia, Universitá di Ferrara I semestre, anno 2014-2015 Elisabetta Ronchieri (Universitá) Insegnamento

More information

An Introduction to R 2.2 Statistical graphics

An Introduction to R 2.2 Statistical graphics An Introduction to R 2.2 Statistical graphics 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 Scatter plots

More information

Instruction: Download and Install R and RStudio

Instruction: Download and Install R and RStudio 1 Instruction: Download and Install R and RStudio We will use a free statistical package R, and a free version of RStudio. Please refer to the following two steps to download both R and RStudio on your

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

Introduction to R. base -> R win32.exe (this will change depending on the latest version)

Introduction to R. base -> R win32.exe (this will change depending on the latest version) Dr Raffaella Calabrese, Essex Business School 1. GETTING STARTED Introduction to R R is a powerful environment for statistical computing which runs on several platforms. R is available free of charge.

More information

Adding content to your Blackboard 9.1 class

Adding content to your Blackboard 9.1 class Adding content to your Blackboard 9.1 class There are quite a few options listed when you click the Build Content button in your class, but you ll probably only use a couple of them most of the time. Note

More information

RMassBank for XCMS. Erik Müller. January 4, Introduction 2. 2 Input files LC/MS data Additional Workflow-Methods 2

RMassBank for XCMS. Erik Müller. January 4, Introduction 2. 2 Input files LC/MS data Additional Workflow-Methods 2 RMassBank for XCMS Erik Müller January 4, 2019 Contents 1 Introduction 2 2 Input files 2 2.1 LC/MS data........................... 2 3 Additional Workflow-Methods 2 3.1 Options..............................

More information

Overview of R. Biostatistics

Overview of R. Biostatistics Overview of R Biostatistics 140.776 Stroustrup s Law There are only two kinds of languages: the ones people complain about and the ones nobody uses. R is a dialect of S What is R? What is S? S is a language

More information

A whirlwind introduction to using R for your research

A whirlwind introduction to using R for your research A whirlwind introduction to using R for your research Jeremy Chacón 1 Outline 1. Why use R? 2. The R-Studio work environment 3. The mock experimental analysis: 1. Writing and running code 2. Getting data

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

LAB #1: DESCRIPTIVE STATISTICS WITH R

LAB #1: DESCRIPTIVE STATISTICS WITH R NAVAL POSTGRADUATE SCHOOL LAB #1: DESCRIPTIVE STATISTICS WITH R Statistics (OA3102) Lab #1: Descriptive Statistics with R Goal: Introduce students to various R commands for descriptive statistics. Lab

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Reproducible Homerange Analysis

Reproducible Homerange Analysis Reproducible Homerange Analysis (Sat Aug 09 15:28:43 2014) based on the rhr package This is an automatically generated file with all parameters and settings, in order to enable later replication of the

More information

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21 Reference Guide Adding a Generic File Store - Importing From a Local or Network Folder Page 1 of 21 Adding a Generic File Store TABLE OF CONTENTS Background First Things First The Process Creating the

More information

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction In this exercise, we will learn how to reorganize and reformat a data

More information

Introduction to R. 1 Introduction 2. 2 What You Need 2

Introduction to R. 1 Introduction 2. 2 What You Need 2 Introduction to R Dave Armstrong University of Wisconsin-Milwaukee Department of Political Science e: armstrod@uwm.edu w: http://www.quantoid.net/teachuw/uwmpsych Contents 1 Introduction 2 2 What You Need

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

Project Collaboration

Project Collaboration Bonus Chapter 8 Project Collaboration It s quite ironic that the last bonus chapter of this book contains information that many of you will need to get your first Autodesk Revit Architecture project off

More information

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas.

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. GIS LAB 1 Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. ArcGIS offers some advantages for novice users. The graphical user interface is similar to many Windows packages

More information

Google Drive: Access and organize your files

Google Drive: Access and organize your files Google Drive: Access and organize your files Use Google Drive to store and access your files, folders, and Google Docs anywhere. Change a file on the web, your computer, or your mobile device, and it updates

More information

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia The goal for this tutorial is to make sure that you understand a few key concepts related to programming, and that you know the basics

More information

Entering and Outputting Data 2 nd best TA ever: Steele H. Valenzuela February 2-6, 2015

Entering and Outputting Data 2 nd best TA ever: Steele H. Valenzuela February 2-6, 2015 Entering and Outputting Data 2 nd best TA ever: Steele H. Valenzuela February 2-6, 2015 Contents Things to Know Before You Begin.................................... 1 Entering and Outputting Data......................................

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

Computer lab 2 Course: Introduction to R for Biologists

Computer lab 2 Course: Introduction to R for Biologists Computer lab 2 Course: Introduction to R for Biologists April 23, 2012 1 Scripting As you have seen, you often want to run a sequence of commands several times, perhaps with small changes. An efficient

More information

Creating an HTML file (Mac)

Creating an HTML file (Mac) writing html on a macintosh Creating an HTML file (Mac) All HTML files are text files. To create a text file you need an application that allows you to create plain text without throwing in a lot of fancy

More information

Using Dreamweaver CS6

Using Dreamweaver CS6 3 Now that you should know some basic HTML, it s time to get in to using the general editing features of Dreamweaver. In this section we ll create a basic website for a small business. We ll start by looking

More information

Lab 1: Getting started with R and RStudio Questions? or

Lab 1: Getting started with R and RStudio Questions? or Lab 1: Getting started with R and RStudio Questions? david.montwe@ualberta.ca or isaacren@ualberta.ca 1. Installing R and RStudio To install R, go to https://cran.r-project.org/ and click on the Download

More information

Using Dreamweaver CC. 3 Basic Page Editing. Planning. Viewing Different Design Styles

Using Dreamweaver CC. 3 Basic Page Editing. Planning. Viewing Different Design Styles 3 Now that you should know some basic HTML, it s time to get in to using the general editing features of Dreamweaver. In this section we ll create a basic website for a small business. We ll start by looking

More information

7/2/2013 R packaging with Rstudio Topics:

7/2/2013 R packaging with Rstudio Topics: 7/2/2013 R packaging with Rstudio Topics: How to make an R package using RStudio Sharing packages using github or url Tip for speeding up code Using Sweave and RStudio to do 'reproducible research/programming'.

More information

Customizing DAZ Studio

Customizing DAZ Studio Customizing DAZ Studio This tutorial covers from the beginning customization options such as setting tabs to the more advanced options such as setting hot keys and altering the menu layout. Introduction:

More information

SISG/SISMID Module 3

SISG/SISMID Module 3 SISG/SISMID Module 3 Introduction to R Ken Rice Tim Thornton University of Washington Seattle, July 2018 Introduction: Course Aims This is a first course in R. We aim to cover; Reading in, summarizing

More information

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting

More information

Oracle Big Data Cloud Service, Oracle Storage Cloud Service, Oracle Database Cloud Service

Oracle Big Data Cloud Service, Oracle Storage Cloud Service, Oracle Database Cloud Service Demo Introduction Keywords: Oracle Big Data Cloud Service, Oracle Storage Cloud Service, Oracle Database Cloud Service Goal of Demo: Oracle Big Data Preparation Cloud Services can ingest data from various

More information

Tutorial: SeqAPass Boxplot Generator

Tutorial: SeqAPass Boxplot Generator 1 Tutorial: SeqAPass Boxplot Generator 1. Access SeqAPASS by opening https://seqapass.epa.gov/seqapass/ using Mozilla Firefox web browser 2. Open the About link on the login page or upon logging in to

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

Getting and Cleaning Data. Biostatistics

Getting and Cleaning Data. Biostatistics Getting and Cleaning Data Biostatistics 140.776 Getting and Cleaning Data Getting data: APIs and web scraping Cleaning data: Tidy data Transforming data: Regular expressions Getting Data Web site Nature

More information

Word: Print Address Labels Using Mail Merge

Word: Print Address Labels Using Mail Merge Word: Print Address Labels Using Mail Merge No Typing! The Quick and Easy Way to Print Sheets of Address Labels Here at PC Knowledge for Seniors we re often asked how to print sticky address labels in

More information

How Your First Program Works

How Your First Program Works How Your First Program Works Section 2: How Your First Program Works How Programs Are Structured...19 Method Main ( )...21 How Programs Are Structured In Section 1, you typed in and ran your first program

More information

1/22/2018. Multivariate Applications in Ecology (BSC 747) Ecological datasets are very often large and complex

1/22/2018. Multivariate Applications in Ecology (BSC 747) Ecological datasets are very often large and complex Multivariate Applications in Ecology (BSC 747) Ecological datasets are very often large and complex Modern integrative approaches have allowed for collection of more data, challenge is proper integration

More information

Getting Started With Squeeze Server

Getting Started With Squeeze Server Getting Started With Squeeze Server & Squeeze Server takes the proven Squeeze encoding engine and makes it available on- premise, in the cloud or both, with a robust application programming interface (API)

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

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

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

Workshop. Import Workshop

Workshop. Import Workshop Import Overview This workshop will help participants understand the tools and techniques used in importing a variety of different types of data. It will also showcase a couple of the new import features

More information

Introduction to Stata - Session 1

Introduction to Stata - Session 1 Introduction to Stata - Session 1 Simon, Hong based on Andrea Papini ECON 3150/4150, UiO January 15, 2018 1 / 33 Preparation Before we start Sit in teams of two Download the file auto.dta from the course

More information

Every project requires communication and collaboration and usually a lot of

Every project requires communication and collaboration and usually a lot of Collaborating on Projects with SharePoint CHAPTER 25 Every project requires communication and collaboration and usually a lot of both. With small project teams, you and your team members may interact in

More information

CSCU9B2 Practical 1: Introduction to HTML 5

CSCU9B2 Practical 1: Introduction to HTML 5 CSCU9B2 Practical 1: Introduction to HTML 5 Aim: To learn the basics of creating web pages with HTML5. Please register your practical attendance: Go to the GROUPS\CSCU9B2 folder in your Computer folder

More information

UTILITY FUNCTIONS IN R

UTILITY FUNCTIONS IN R UTILITY FUNCTIONS IN R DIYA DAS GRADUATE STUDENT, NGAI LAB, DEPT OF MOLECULAR & CELL BIOLOGY MOORE/SLOAN DATA SCIENCE FELLOW, BERKELEY INSTITUTE FOR DATA SCIENCE WHAT DO I MEAN BY UTILITY FUNCTIONS? Anything

More information

CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I

CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I Welcome to your CSCI-1100 Lab! In the fine tradition of the CSCI-1100 course, we ll start off the lab with the classic bad joke

More information

2007, 2008 FileMaker, Inc. All rights reserved.

2007, 2008 FileMaker, Inc. All rights reserved. Bento User s Guide 2007, 2008 FileMaker, Inc. All rights reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker, the file folder logo, Bento and the Bento logo are either

More information

R Website R Installation and Folder R Packages R Documentation R Search R Workspace Interface R Common and Important Basic Commands

R Website R Installation and Folder R Packages R Documentation R Search R Workspace Interface R Common and Important Basic Commands Table of Content R Website R Installation and Folder R Packages R Documentation R Search R Workspace Interface R Common and Important Basic Commands R Website http://www.r project.org/ Download, Package

More information

STAT 213: R/RStudio Intro

STAT 213: R/RStudio Intro STAT 213: R/RStudio Intro Colin Reimer Dawson Last Revised February 10, 2016 1 Starting R/RStudio Skip to the section below that is relevant to your choice of implementation. Installing R and RStudio Locally

More information

A Step by Step Guide to Postcard Marketing Success

A Step by Step Guide to Postcard Marketing Success A Step by Step Guide to Postcard Marketing Success Table of Contents Why VerticalResponse?...3 Why Postcards?...4 So why use postcards in this modern era?...4 Quickstart Guide...6 Step 1: Setup Your Account...8

More information

Knowledgebase Article. Queue Member Report. BMC Remedyforce

Knowledgebase Article. Queue Member Report. BMC Remedyforce Knowledgebase Article Queue Member Report John Patrick & Virginia Leandro 28 May 2013 Table of Contents Queue Report 3 Salesforce Apex Data Loader 3 Getting the Data Loader... 3 Getting your Security Token...

More information

How to Download and Install R The R software can be downloaded from: Click on download R link.

How to Download and Install R The R software can be downloaded from:   Click on download R link. Tutorial 1: Getting Acquainted with R (Windows version) How to Download and Install R The R software can be downloaded from: www.r-project.org. Click on download R link. Choose a CRAN mirror from a location

More information

Digging into File Formats: Poking around at data using file, DROID, JHOVE, and more

Digging into File Formats: Poking around at data using file, DROID, JHOVE, and more Digging into File Formats: Poking around at data using file, DROID, JHOVE, and more Presented by Stephen Eisenhauer UNT Libraries TechTalks February 12, 2014 Why? We handle a lot of digital information

More information

POL 345: Quantitative Analysis and Politics

POL 345: Quantitative Analysis and Politics POL 345: Quantitative Analysis and Politics Precept Handout 1 Week 2 (Verzani Chapter 1: Sections 1.2.4 1.4.31) Remember to complete the entire handout and submit the precept questions to the Blackboard

More information

One of Excel 2000 s distinguishing new features relates to sharing information both

One of Excel 2000 s distinguishing new features relates to sharing information both Chapter 7 SHARING WORKBOOKS In This Chapter Using OLE with Excel Sharing Workbook Files Sharing Excel Data Over the Web Retrieving External Data with Excel One of Excel 2000 s distinguishing new features

More information

Code Plug Management: Contact List Import/Export. Version 1.0, Dec 16, 2015

Code Plug Management: Contact List Import/Export. Version 1.0, Dec 16, 2015 Code Plug Management: Contact List Import/Export Version 1.0, Dec 16, 2015 Background This presentation will show how to update and maintain contact lists in the CS750 The following applications will be

More information

Retrospect 8 for Windows Reviewer s Guide

Retrospect 8 for Windows Reviewer s Guide Retrospect 8 for Windows Reviewer s Guide 2012 Retrospect, Inc. About this Reviewer s Guide This document provides a concise guide to understanding Retrospect 8 for Windows. While it is not designed to

More information

Furl Furled Furling. Social on-line book marking for the masses. Jim Wenzloff Blog:

Furl Furled Furling. Social on-line book marking for the masses. Jim Wenzloff Blog: Furl Furled Furling Social on-line book marking for the masses. Jim Wenzloff jwenzloff@misd.net Blog: http://www.visitmyclass.com/blog/wenzloff February 7, 2005 This work is licensed under a Creative Commons

More information

MIGSA: Getting pbcmc datasets

MIGSA: Getting pbcmc datasets MIGSA: Getting pbcmc datasets Juan C Rodriguez Universidad Católica de Córdoba Universidad Nacional de Córdoba Cristóbal Fresno Instituto Nacional de Medicina Genómica Andrea S Llera Fundación Instituto

More information

Instructions for Using the Databases

Instructions for Using the Databases Appendix D Instructions for Using the Databases Two sets of databases have been created for you if you choose to use the Documenting Our Work forms. One set is in Access and one set is in Excel. They are

More information

CS 1301 Fall 2008 Lab 2 Introduction to UNIX

CS 1301 Fall 2008 Lab 2 Introduction to UNIX CS 1301 Fall 2008 Lab 2 Introduction to UNIX Due: Friday, September 19 th, at 6 PM (Monday, September 22 nd for 10% off) Notes: Do not wait until the last minute to do this assignment in case you run into

More information

The hi4em Dummies Guide To Business Objects InfoView

The hi4em Dummies Guide To Business Objects InfoView The hi4em Dummies Guide To Business Objects InfoView Updated on 21 st September 2007 Who to Blame: Dan Parkes Introduction Welcome to the hi4em dummies guide to Business Objects InfoView. This guide is

More information

MIS 0855 Data Science (Section 006) Fall 2017 In-Class Exercise (Day 15) Creating Interactive Dashboards

MIS 0855 Data Science (Section 006) Fall 2017 In-Class Exercise (Day 15) Creating Interactive Dashboards MIS 0855 Data Science (Section 006) Fall 2017 In-Class Exercise (Day 15) Creating Interactive Dashboards Objective: Create a dashboard with interactive data filtering using Tableau Learning Outcomes: Understand

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

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1 COMP 210: Object-Oriented Programming Lecture Notes 1 Java Program Structure and Eclipse Robert Utterback In these notes we talk about the basic structure of Java-based OOP programs and how to setup and

More information

Introduction to R (BaRC Hot Topics)

Introduction to R (BaRC Hot Topics) Introduction to R (BaRC Hot Topics) George Bell September 30, 2011 This document accompanies the slides from BaRC s Introduction to R and shows the use of some simple commands. See the accompanying slides

More information

the star lab introduction to R Day 2 Open R and RWinEdt should follow: we ll need that today.

the star lab introduction to R Day 2 Open R and RWinEdt should follow: we ll need that today. R-WinEdt Open R and RWinEdt should follow: we ll need that today. Cleaning the memory At any one time, R is storing objects in its memory. The fact that everything is an object in R is generally a good

More information

Automating Digital Downloads

Automating Digital Downloads Automating Digital Downloads (Copyright 2018 Reed Hoffmann, not to be shared without permission) One of the best things you can do to simplify your imaging workflow is to automate the download process.

More information

Creating your first JavaServer Faces Web application

Creating your first JavaServer Faces Web application Chapter 1 Creating your first JavaServer Faces Web application Chapter Contents Introducing Web applications and JavaServer Faces Installing Rational Application Developer Setting up a Web project Creating

More information

FILE ORGANIZATION. GETTING STARTED PAGE 02 Prerequisites What You Will Learn

FILE ORGANIZATION. GETTING STARTED PAGE 02 Prerequisites What You Will Learn FILE ORGANIZATION GETTING STARTED PAGE 02 Prerequisites What You Will Learn PRINCIPLES OF FILE ORGANIZATION PAGE 03 Organization Trees Creating Categories FILES AND FOLDERS PAGE 05 Creating Folders Saving

More information

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting

More information

Exercise 1: Introduction to MapInfo

Exercise 1: Introduction to MapInfo Geog 578 Exercise 1: Introduction to MapInfo Page: 1/22 Geog 578: GIS Applications Exercise 1: Introduction to MapInfo Assigned on January 25 th, 2006 Due on February 1 st, 2006 Total Points: 10 0. Convention

More information

(Updated 29 Oct 2016)

(Updated 29 Oct 2016) (Updated 29 Oct 2016) 1 Class Maker 2016 Program Description Creating classes for the new school year is a time consuming task that teachers are asked to complete each year. Many schools offer their students

More information

Chapter 3 Running Totals

Chapter 3 Running Totals Chapter 3 Objectives Chapter 3 Running Totals Recognize effects of Multi-Pass Processing. Create Running Total fields. Create Conditional Running Totals Use a Running Total to Summarize a Group Scenario

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

History, installation and connection

History, installation and connection History, installation and connection The men behind our software Jim Goodnight, CEO SAS Inc Ross Ihaka Robert Gentleman (Duncan Temple Lang) originators of R 2 / 75 History SAS From late 1960s, North Carolina

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Linking Reports to your Database in Crystal Reports 2008

Linking Reports to your Database in Crystal Reports 2008 Linking Reports to your Database in Crystal Reports 2008 After downloading and saving a report on your PC, either (1) browse-to the report using Windows Explorer and double-click on the report file or

More information

Lab #1: A Quick Introduction to the Eclipse IDE

Lab #1: A Quick Introduction to the Eclipse IDE Lab #1: A Quick Introduction to the Eclipse IDE Eclipse is an integrated development environment (IDE) for Java programming. Actually, it is capable of much more than just compiling Java programs but that

More information

Silk Performance Manager Installation and Setup Help

Silk Performance Manager Installation and Setup Help Silk Performance Manager 18.5 Installation and Setup Help Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com Copyright 2004-2017 Micro Focus. All rights reserved.

More information

Introduction to R. Andy Grogan-Kaylor October 22, Contents

Introduction to R. Andy Grogan-Kaylor October 22, Contents Introduction to R Andy Grogan-Kaylor October 22, 2018 Contents 1 Background 2 2 Introduction 2 3 Base R and Libraries 3 4 Working Directory 3 5 Writing R Code or Script 4 6 Graphical User Interface 4 7

More information

One of the fundamental kinds of websites that SharePoint 2010 allows

One of the fundamental kinds of websites that SharePoint 2010 allows Chapter 1 Getting to Know Your Team Site In This Chapter Requesting a new team site and opening it in the browser Participating in a team site Changing your team site s home page One of the fundamental

More information

FTP Frequently Asked Questions

FTP Frequently Asked Questions Guide to FTP Introduction This manual will guide you through understanding the basics of FTP and file management. Within this manual are step-by-step instructions detailing how to connect to your server,

More information

Remodeling Your Office A New Look for the SAS Add-In for Microsoft Office

Remodeling Your Office A New Look for the SAS Add-In for Microsoft Office Paper SAS1864-2018 Remodeling Your Office A New Look for the SAS Add-In for Microsoft Office ABSTRACT Tim Beese, SAS Institute Inc., Cary, NC Millions of people spend their weekdays in an office. Occasionally

More information

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

XP: Backup Your Important Files for Safety

XP: Backup Your Important Files for Safety XP: Backup Your Important Files for Safety X 380 / 1 Protect Your Personal Files Against Accidental Loss with XP s Backup Wizard Your computer contains a great many important files, but when it comes to

More information

Subversion was not there a minute ago. Then I went through a couple of menus and eventually it showed up. Why is it there sometimes and sometimes not?

Subversion was not there a minute ago. Then I went through a couple of menus and eventually it showed up. Why is it there sometimes and sometimes not? Subversion was not there a minute ago. Then I went through a couple of menus and eventually it showed up. Why is it there sometimes and sometimes not? Trying to commit a first file. There is nothing on

More information

Introduction to R. UCLA Statistical Consulting Center R Bootcamp. Irina Kukuyeva September 20, 2010

Introduction to R. UCLA Statistical Consulting Center R Bootcamp. Irina Kukuyeva September 20, 2010 UCLA Statistical Consulting Center R Bootcamp Irina Kukuyeva ikukuyeva@stat.ucla.edu September 20, 2010 Outline 1 Introduction 2 Preliminaries 3 Working with Vectors and Matrices 4 Data Sets in R 5 Overview

More information

A system for statistical analysis. Instructions for installing software. R, R-studio and the R-commander

A system for statistical analysis. Instructions for installing software. R, R-studio and the R-commander Instructions for installing software R, R-studio and the R-commander Graeme.Hutcheson@manchester.ac.uk Manchester Institute of Education, University of Manchester This course uses the following software...

More information

Introduction to Programming

Introduction to Programming CHAPTER 1 Introduction to Programming Begin at the beginning, and go on till you come to the end: then stop. This method of telling a story is as good today as it was when the King of Hearts prescribed

More information

Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013

Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013 Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013 1. Open Google Earth. 2. Familiarize yourself with Google Earth s navigational features by zooming into Furman s campus, your

More information

Sucuri Webinar Q&A HOW TO IDENTIFY AND FIX A HACKED WORDPRESS WEBSITE. Ben Martin - Remediation Team Lead

Sucuri Webinar Q&A HOW TO IDENTIFY AND FIX A HACKED WORDPRESS WEBSITE. Ben Martin - Remediation Team Lead Sucuri Webinar Q&A HOW TO IDENTIFY AND FIX A HACKED WORDPRESS WEBSITE. Ben Martin - Remediation Team Lead 1 Question #1: What is the benefit to spammers for using someone elses UA code and is there a way

More information

Question: How do I move my mobile account from the Corporate to my Personal Account?

Question: How do I move my mobile account from the Corporate to my Personal Account? Question: How do I move my mobile account from the Corporate to my Personal Account? Answer: A user leaving Nortel can move his/her account off of the corporate program and into a personal liable account.

More information

Generic Language Technology

Generic Language Technology Generic Language Technology Working with Xtext Introduction We have used Xtext to define a concrete syntax for a domain-specific language called Simple Language of Communicating Objects (SLCO). This language

More information

IN-CLASS EXERCISE: INTRODUCTION TO R

IN-CLASS EXERCISE: INTRODUCTION TO R NAVAL POSTGRADUATE SCHOOL IN-CLASS EXERCISE: INTRODUCTION TO R Survey Research Methods Short Course Marine Corps Combat Development Command Quantico, Virginia May 2013 In-class Exercise: Introduction to

More information

National Child Measurement Programme 2017/18. IT System User Guide part 3. Pupil Data Management

National Child Measurement Programme 2017/18. IT System User Guide part 3. Pupil Data Management National Child Measurement Programme 2017/18 IT System User Guide part 3 Pupil Data Management Published September 2017 Version 4.0 Introduction 3 Who Should Read this Guidance? 3 How will this Guidance

More information