/ExData_Plotting1

Plotting Assignment 1 for Exploratory Data Analysis

Primary LanguageR

title author date output
README.md
iNLyze
November 7th, 2014
html_document

Introduction

This directory contains sources and results to course project 1 in Coursera / Data Science Specialization / Exploratory Data Analysis The assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. The data has been made available on and will be downloaded from:

  • Dataset: Electric power consumption [20Mb]

  • Description: Measurements of electric power consumption in one household with a one-minute sampling rate over a period of almost 4 years. Different electrical quantities and some sub-metering values are available.

Important notes for the reviewer

The instructions provided asked to include code for data preparation. I decided to put all utility functions into a separate script called getAndLoadData.R This contains three functions termed

download.and.unzip(directory)
read.energy.data(directory, file)
clean.and.subset()

By putting these functions into a separate file I keep the sources for the plot scripts concise. The file getAndLoadData.Rgets sourced from there and functions called as needed. Note: You may want to have a variable "directory" in your workspace containing a chr string to the destination directory.