Skip to content

astenmark/tidydata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains a script (run_analysis.R) to create a tidy dataset from activity data. The original dataset, the processing performed to create the tidy dataset and the variables used, are all described in the file Codebook.md.

In order to use the script, do the following:

  1. The script expects either a subdirectory (UCI HAR Dataset) with the original dataset, or the zip file (UCI HAR Dataset.zip) with the original data. The zip file will be unzipped if the subdirectory doesn't exist.

  2. In R, change working directory to the directory where either the zip file or the dataset directory is located. E.g.

    > setwd("~/Coursera/DataScience")
  3. Then, run the script like this:

    > source("run_analysis.R")
  4. The data files as described in the codebook will be read and a file tidydata.txt will be written to the current directory. This resulting tidy dataset is created using dput(), and can be imported using:

    > means = dget("tidymeans.txt")

About

Getting and Cleaning Data Course Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages