Reading a CSV file in R.

Slides:



Advertisements
Similar presentations
How to Use a Microsoft Excel* Spreadsheet to Create Graphs.
Advertisements

A gentle introduction to R – how to load in data and produce summary statistics BRC MH Bioinformatics group.
DATA ANALYTICS. NORMS Cell Phones on Vibrate Respect all opinions.
Importing GPS Data Lecture 13. EasyGPS  Free software for downloading waypoints  EasyGPS ( EasyGPS  Free software for downloading.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 2Advanced Reports, Access Tools, and Customizing Access Chapter 8Integrating Access Data.
Creating a County ArcMap with Fiscal Year Conservation Practice Locations David Hoover ASTC, Idaho 2007 DC Meeting.
Outlook Contacts Export Guideline Powered by DonorCommunity TM DonorCommunity eLearning Series v1.2, September 2012 Outlook Contacts Export Guideline Outlook.
Excel 2007 Graphs & Charts. TYPES OF CHARTS Column Bar Pie Line.
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved. 1 Lesson Objectives Lesson 5 objectives Use a template to.
A Visual Follow-Along Guide to the Instructions of the NBTA Modular Hotel RFP.
Microsoft Excel 2010 Chapter 7
Integrating Access with the Web and with Other Programs.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
Add a File with X, Y coordinates to MapWindow
Graphing with Excel: Graphing Made Easy Mac 2008 Version.
Excel 2007 Part (2) Dr. Susan Al Naqshbandi
September 5, 2015 Office Setup. Lesson Overview: Office Setup  In this lesson we will cover:  Adding new offices to COM  Individual office setup 
EMetric Presents A reporting application designed to fit the needs of ACCESS for ELLs users.
Kepler Exercise Deana Pennington University of New Mexico January 9, 2007.
To make a graph in Excel, first you have to highlight the data you want to graph. To do this, click and drag over the “blocks” you need. Be sure to include.
Assessment for Learning Questionnaire Staff Guide.
1 XY Scatter Plots in Excel In this example, the position of a hanger on a spring was measured (with respect to a Motion Sensor) as a function.
CSC 240 (Blum)1 Forms and Importing Data in Access.
Plotting in Microsoft Excel. 1) Enter your data into the Excel spreadsheet in table format. Your data should have column headers, row headers and data.
This is what a blank excel workbook looks like. To start there are three separate sheets on which to store data. Down the left side are the ROW labels.
CCS – Mail Merge Mail Merge This presentation is incomplete without the associated discussion 1 Coloma Community Schools In-service 21 March 2014.
How do I export the Address Book to Excel? The first step is to go to "Address Book Report" under Admin Only menu Choose the fields you want. note that.
MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.
Importing Data to Excel. Suppose you have a delimited* text file and you need to bring it into Excel. Follow these steps… *Delimited means text separated.
What is a Combo Box? Is a list of values from which the user can select a single value. Saves typing Adds another means of enforcing referential integrity.
EXCEL GRAPHING *Basic Graphing Steps* by A.B. -NNHS.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
More Oracle SQL Scripts. Highlight (but don’t open) authors table, got o External data Excel, and make an external spreadsheet with the data.
Chapter 3 Graphs and Charts. Agenda Chart Object linking and embedding.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
Exporting & Formatting Budgets from FlexGen, NextGen & Zortec into Excel.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Database Essentials Lesson 1. Software Orientation.
How to create a graph using Microsoft Excel By Lynn Carroll.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from another Access table Import data from another Access table.
Review > x[-c(1,4,6)] > Y[1:3,2:8] > island.data fishData$weight[1] > fishData[fishData$weight < 20 & fishData$condition.
Graphing How to make a graph using Excel. Step 1 Go to Mr Cook’s Web site and go to LINKS and find the section marked Excel Data Set A or B. If your last.
Lecturer: Dalia Mirghani
Creates the file on disk and opens it for writing
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Select Your Meeting Export Your Contacts From Outlook How to create a csv contact file from Outlook to import into Select Your Meeting
Average Rebound Height
XY Scatter Plots in Excel 2007
Microsoft Office Illustrated
Managing Student Test Settings
MySQL and MyPHPAdmin.
2. Double-click on file to open in Excel
Average Rebound Height
DATA MANAGEMENT MODULE: Getting Data Into and Out of R
Exporting & Formatting Budgets from NextGen o Excel
PivotTables in Excel (2007)
Learning about Taxes with Intuit ProFile
Creates the file on disk and opens it for writing
Microsoft Office Access 2003
Microsoft Excel Chapters 6&7
Microsoft Office Access 2003
Excel: Excel Basics Participation Project
Learning about Taxes with Intuit ProFile
Excel: Excel Basics Participation Project
Microsoft Excel Chapters 6&7
From Excel to Outlook: creating a distribution list via Blackboard.
Tutorial 7 – Integrating Access With the Web and With Other Programs
Help with Excel Graphs CHM 2046L.
Data Frame and Hubble's Plot
Lesson 13 Working with Tables
Presentation transcript:

Reading a CSV file in R

Download a CSV (comma-separated values) file Download a CSV (comma-separated values) file. Right click on it and choose properties.

Highlight the location, right click on it and copy

Turn the back slashes into forward slashes and add the filename (including its extension) and use it the read.csv method The second “argument” of the read.csv method says TRUE the data file includes headers as the first line. The third “argument” of the read.csv method says that the delimiter (thing separating the data elements) is a comma

The head method shows the first several rows of data.

Showing file extensions: Find the Control Panel

Switch from categories to Large or small icons

Choose File Explorer Options

Click on View tab and uncheck the Hide extensions setting. Click Apply.

The field names that came in from the CSV file were weird (the original file has parentheses), so I used the names method to rename them.

Plot the data with Volume on the x axis.

Resulting plot

Obtain a linear model for the data.frame

Summary of linear model in Console

Compare to Excel 1

Compare to Excel 2

Use abline to display the fit

Display the equation

If you have an Excel file and want a CSV, then click on File/ Save As

Click Browse. Use the Save As type drop-down to choose CSV

If the data is in the “working directory” – found by using getwd() – then the file name is enough

Another possible change is to use the field names in the axis labels

Take the heart rate data below (same as on Friday from the first week of class). Use Excel to convert it to a CSV format file. Read that data into R and make a plot with a linear fit with the equation displayed on the graph. Speed_in_kph Pulse_in_bpm 57 1.6 69 3.1 78 4 80 5 85 6 87 6.9 90 7.7 92 8.7 97 12.4 108 15.3 119