====================================================================================
This repository contains the 1st assingment of the Exploratory Data Analysis Course (J. Hopkins, Coursera)
====================================================================================
1st assignment
This assignment uses the “Individual household electric power consumption Data Set” from the UC Irvine Machine Learning Repository. It consists of the 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.
- Date: Date in format dd/mm/yyyy
- Time: time in format hh:mm:ss
- Global_active_power: household global minute-averaged active power (in kilowatt)
- Global_reactive_power: household global minute-averaged reactive power (in kilowatt)
- Voltage: minute-averaged voltage (in volt)
- Global_intensity: household global minute-averaged current intensity (in ampere)
- Sub_metering_1: energy sub-metering No. 1 (in watt-hour of active energy). It corresponds to the kitchen, containing mainly a dishwasher, an oven and a microwave (hot plates are not electric but gas powered).
- Sub_metering_2: energy sub-metering No. 2 (in watt-hour of active energy). It corresponds to the laundry room, containing a washing-machine, a tumble-drier, a refrigerator and a light.
- Sub_metering_3: energy sub-metering No. 3 (in watt-hour of active energy). It corresponds to an electric water-heater and an air-conditioner.
script file names: plot1.R, plot2.R, plot3.R, plot4.R
Each script does the following:
- Uploads data tables (it will work as long as R script is saved in the same working directory as the files, otherwise please correct path)
- Appropriately changes variable classes.
- Extracts only the measurements between 2007-02-01 and 2007-02-02.
- Merges the 'Date' and 'Time' variable, and then transforms the resulting vector 'Datetime' to class=POSIXct.
- Creates new column in the dataframe named 'Datetime'.
- Extracts date and time information using strptime function, which is then used to build each plot.
/* https://archive.ics.uci.edu/ml/datasets/Individual+household+electric+power+consumption